You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
579 B
19 lines
579 B
<?php
|
|
/** @license MIT
|
|
* Copyright 2017 , Dustin Wilson, J. King et al.
|
|
* See LICENSE and AUTHORS files for details */
|
|
|
|
declare(strict_types=1);
|
|
namespace MensBeam\HTML\Parser;
|
|
|
|
class TemplateInsertionModesStack extends Stack {
|
|
public function __get($property) {
|
|
assert($property === "currentMode", new \Exception("Property $property is invalid"));
|
|
switch ($property) {
|
|
case 'currentMode':
|
|
return $this->isEmpty() ? null : $this->top();
|
|
default:
|
|
return null; // @codeCoverageIgnore
|
|
}
|
|
}
|
|
}
|
|
|