1 | <?php |
||
17 | abstract class AbstractProperties |
||
18 | { |
||
19 | /** |
||
20 | * XPath instance for a Kaloa\Xmp\Document. |
||
21 | * |
||
22 | * @var DOMXPath |
||
23 | */ |
||
24 | protected $xPath; |
||
25 | |||
26 | /** |
||
27 | * Initializes the instance. |
||
28 | * |
||
29 | * @param DOMXPath $xPath XPath instance for a Kaloa\Xmp\Document |
||
30 | */ |
||
31 | 1 | public function __construct(DOMXPath $xPath) |
|
37 | |||
38 | /** |
||
39 | * Implementing classes should place initialization code here rather than |
||
40 | * overwriting __construct. |
||
41 | */ |
||
42 | abstract protected function init(); |
||
43 | } |
||
44 |