Bluz\Common\Options

Options Trait

Example of usage
class Foo
{
use \Bluz\Common\Options;

protected $bar = '';
protected $baz = '';

public function setBar($value)
{
$this->bar = $value;
}

public function setBaz($value)
{
$this->baz = $value;
}
}

$Foo = new Foo();
$Foo->setOptions(['bar'=>123, 'baz'=>456]);

Synopsis

trait Options {
}

Hierarchy

Members

protected

  • $options — array

Methods

protected

public

History