| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | trait ChartOwned |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var ChartInterface |
||
| 14 | */ |
||
| 15 | private $owner; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param ChartInterface $chart |
||
| 19 | * |
||
| 20 | * @return $this |
||
| 21 | */ |
||
| 22 | public function setOwner(ChartInterface $chart) |
||
| 23 | { |
||
| 24 | $this->owner = $chart; |
||
| 25 | |||
| 26 | return $this; |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return ChartInterface |
||
| 31 | */ |
||
| 32 | public function owner() |
||
| 35 | } |
||
| 36 | } |
||
| 37 |