1 | <?php |
||
24 | final class DummyFactoryStrategy implements ProjectFactoryStrategy |
||
25 | { |
||
26 | /** |
||
27 | * Returns true when the strategy is able to handle the object. |
||
28 | * |
||
29 | * |
||
30 | * @param mixed $object object to check. |
||
31 | */ |
||
32 | public function matches($object): bool |
||
36 | |||
37 | /** |
||
38 | * Creates an Element out of the given object. |
||
39 | * |
||
40 | * Since an object might contain other objects that need to be converted the $factory is passed so it can be |
||
41 | * used to create nested Elements. |
||
42 | * |
||
43 | * @param object $object object to convert to an Element |
||
44 | * @param StrategyContainer $strategies used to convert nested objects. |
||
45 | * @return Element |
||
46 | */ |
||
47 | public function create($object, StrategyContainer $strategies, Context $context = null) |
||
50 | } |
||
51 |