1 | <?php |
||
11 | abstract class AbstractFactory |
||
12 | { |
||
13 | abstract public function matches($object); |
||
14 | |||
15 | 42 | public final function create($object, StrategyContainer $strategies, Context $context = null) |
|
28 | |||
29 | abstract protected function doCreate($object, StrategyContainer $strategies, Context $context = null); |
||
30 | |||
31 | /** |
||
32 | * @param Node|PropertyIterator|ClassConstantIterator $stmt |
||
33 | * @param StrategyContainer $strategies |
||
34 | * @param Context $context |
||
35 | * @return Element |
||
36 | */ |
||
37 | 14 | protected function createMember($stmt, StrategyContainer $strategies, Context $context = null) |
|
42 | |||
43 | /** |
||
44 | * @param Doc $docBlock |
||
45 | * @param StrategyContainer $strategies |
||
46 | * @param Context $context |
||
47 | * @return null|\phpDocumentor\Reflection\DocBlock |
||
48 | */ |
||
49 | 28 | protected function createDocBlock(Doc $docBlock = null, StrategyContainer $strategies, Context $context = null) |
|
57 | } |
||
58 |