| 1 | <?php |
||
| 10 | trait TubeAwareTrait |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * It is the class exhibiting this trait that becomes responsible for setting this state. |
||
| 14 | * |
||
| 15 | * @var TubeStatus |
||
| 16 | */ |
||
| 17 | protected $tubeStatus; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @return TubeStatus |
||
| 21 | */ |
||
| 22 | 11 | public function getTubeStatus() |
|
| 26 | |||
| 27 | /** |
||
| 28 | * @param TubeStatus $otherTube |
||
| 29 | * @param int $mode One of the TubeStatus::TRANSFORM_* modes |
||
| 30 | * @return static |
||
| 31 | */ |
||
| 32 | 2 | public function transformTubeStatusTo(TubeStatus $otherTube, $mode = TubeStatus::TRANSFORM_BOTH) |
|
| 38 | } |
||
| 39 |