chrisyue /
php-m3u8
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Chrisyue\PhpM3u8\M3u8\AnnotationReadable; |
||
| 4 | |||
| 5 | use Doctrine\Common\Annotations\AnnotationReader; |
||
| 6 | use Doctrine\Common\Annotations\AnnotationRegistry; |
||
| 7 | |||
| 8 | abstract class AbstractConfigurable extends AbstractAnnotationReadable |
||
| 9 | { |
||
| 10 | private $options; |
||
| 11 | |||
| 12 | public function __construct(array $options) |
||
| 13 | { |
||
| 14 | $this->options = $options; |
||
| 15 | } |
||
| 16 | |||
| 17 | protected function getAnnotationReader() |
||
| 18 | { |
||
| 19 | static $reader; |
||
| 20 | if (null === $reader) { |
||
| 21 | AnnotationRegistry::registerLoader('class_exists'); |
||
|
0 ignored issues
–
show
|
|||
| 22 | $reader = new AnnotationReader(); |
||
| 23 | } |
||
| 24 | |||
| 25 | return $reader; |
||
| 26 | } |
||
| 27 | |||
| 28 | protected function getClass() |
||
| 29 | { |
||
| 30 | return $this->options['class']; |
||
| 31 | } |
||
| 32 | |||
| 33 | protected function createResult() |
||
| 34 | { |
||
| 35 | $class = $this->getClass(); |
||
| 36 | |||
| 37 | return new $class; |
||
| 38 | } |
||
| 39 | |||
| 40 | protected function getOption($name) |
||
| 41 | { |
||
| 42 | return $this->options[$name]; |
||
| 43 | } |
||
| 44 | } |
||
| 45 |
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.