| @@ 28-35 (lines=8) @@ | ||
| 25 | private $encoding; |
|
| 26 | private $version; |
|
| 27 | ||
| 28 | public function __construct(\SplFileObject $file, $rowNodeName = 'node', $rootNodeName = 'root', $encoding = null, $version = '1.0') |
|
| 29 | { |
|
| 30 | $this->filename = $file->getRealPath(); |
|
| 31 | $this->rowNodeName = $rowNodeName; |
|
| 32 | $this->rootNodeName = $rootNodeName; |
|
| 33 | $this->encoding = $encoding; |
|
| 34 | $this->version = $version; |
|
| 35 | } |
|
| 36 | ||
| 37 | /** |
|
| 38 | * {@inheritdoc} |
|
| @@ 17-24 (lines=8) @@ | ||
| 14 | protected $encoding; |
|
| 15 | protected $version; |
|
| 16 | ||
| 17 | public function __construct($xpath = null, $rowNodeName='node', $rootNodeName = 'root', $encoding = null, $version = '1.0') |
|
| 18 | { |
|
| 19 | $this->xpath = $xpath; |
|
| 20 | $this->rowNodeName = $rowNodeName; |
|
| 21 | $this->rootNodeName = $rootNodeName; |
|
| 22 | $this->encoding = $encoding; |
|
| 23 | $this->version = $version; |
|
| 24 | } |
|
| 25 | ||
| 26 | public function getXpath() |
|
| 27 | { |
|