8bc4e831c3178def48b4248d01132135a513612c
[yaffs-website] / 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 }