| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class TypeOf extends PhpTemplate |
||
| 10 | { |
||
| 11 | /** @var PhpAnyType */ |
||
| 12 | private $type; |
||
| 13 | |||
| 14 | /** @var bool */ |
||
| 15 | private $renderPhpDoc; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * TypeOf constructor. |
||
| 19 | * @param PhpAnyType $type |
||
| 20 | */ |
||
| 21 | 10 | public function __construct(PhpAnyType $type, $renderPhpDoc = false) |
|
| 22 | { |
||
| 23 | 10 | $this->renderPhpDoc = $renderPhpDoc; |
|
| 24 | 10 | $this->type = $type; |
|
| 25 | 10 | } |
|
| 26 | |||
| 27 | 10 | protected function toString() |
|
| 34 | } |
||
| 35 | } |
||
| 38 | } |