for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Chrisyue\PhpM3u8\M3u8;
trait OptionsTrait
{
private $options;
public function __construct(array $options)
$this->options = $options;
}
protected function getOption($name)
return isset($this->options[$name]) ? $this->options[$name] : null;