Пример #1
0
 /**
  * @param $name
  * @return bool|mixed
  */
 public function __get($name)
 {
     if ($this->options->hasOption($name)) {
         return $this->options->getOption($name);
     }
     return false;
 }
Пример #2
0
 public function testHasOption()
 {
     $this->assertFalse($this->object->hasOption('testOpt'));
     $this->object->setOption('testOpt', 'value');
     $this->assertTrue($this->object->hasOption('testOpt'));
 }