| Total Complexity | 3 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | final class CreateFromInstance implements ObjectConstructor |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * The already instantiated object |
||
| 22 | * |
||
| 23 | * @var object |
||
| 24 | */ |
||
| 25 | private $object; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Constructor |
||
| 29 | * |
||
| 30 | * @param object $object |
||
| 31 | */ |
||
| 32 | public function __construct($object) |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Returns the instantiated object |
||
| 39 | * |
||
| 40 | * @return object |
||
| 41 | */ |
||
| 42 | public function construct() |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Return true if object can be written to disk |
||
| 49 | * |
||
| 50 | * @return bool |
||
| 51 | */ |
||
| 52 | public function canCache(): bool |
||
| 57 |