Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / consolidation / robo / src / Common / InflectionTrait.php
1 <?php
2 namespace Robo\Common;
3
4 use Robo\Contract\InflectionInterface;
5
6 trait InflectionTrait
7 {
8     /**
9      * Ask the provided parent class to inject all of the dependencies
10      * that it has and we need.
11      *
12      * @param \Robo\Contract\InflectionInterface $parent
13      *
14      * @return $this
15      */
16     public function inflect(InflectionInterface $parent)
17     {
18         $parent->injectDependencies($this);
19         return $this;
20     }
21 }