__set() public method

public __set ( $prop, $value )
示例#1
0
 /**
  * {@inheritdoc}
  * @see AbstractEntity::__set()
  */
 public function __set($name, $value)
 {
     switch ($name) {
         case 'metric':
             $this->_metric = $value;
             break;
         default:
             parent::__set($name, $value);
     }
 }