| Total Complexity | 6 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class Config { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var bool |
||
| 19 | */ |
||
| 20 | protected $allowDocumentType = false; |
||
| 21 | /** |
||
| 22 | * @var string|null |
||
| 23 | */ |
||
| 24 | protected $setRootElement = null; |
||
| 25 | /** |
||
| 26 | * @var string|callable|null |
||
| 27 | */ |
||
| 28 | protected $schemaOrCallable = null; |
||
| 29 | /** |
||
| 30 | * @var int |
||
| 31 | */ |
||
| 32 | protected $XML_OPTIONS = 0; |
||
| 33 | |||
| 34 | public function __construct( $setRootElement = null, $allowDocumentType = false, $XML_OPTIONS = 0, $schemaOrCallable = null ) { |
||
| 35 | $this->XML_OPTIONS = $XML_OPTIONS | ( defined( 'LIBXML_COMPACT' ) ? LIBXML_COMPACT : 0 ); |
||
| 36 | $this->setRootElement = $setRootElement; |
||
| 37 | $this->allowDocumentType = $allowDocumentType; |
||
| 38 | $this->schemaOrCallable = $schemaOrCallable; |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return bool|mixed |
||
| 43 | */ |
||
| 44 | public function getAllowDocumentType() { |
||
| 45 | return $this->allowDocumentType; |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return mixed|string|null |
||
| 50 | */ |
||
| 51 | public function getSetRootElement() { |
||
| 52 | return $this->setRootElement; |
||
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return callable|mixed|string|null |
||
| 57 | */ |
||
| 58 | public function getSchemaOrCallable() { |
||
| 60 | } |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @return int |
||
| 64 | */ |
||
| 65 | public function getXML_OPTIONS() { |
||
| 69 | } |