示例#1
0
 /**
  * Sets the value of the key . First it will check whether specified key is a property if not it
  * will set from normal set from base class
  * @param <string> $key - property or key name
  * @param <string> $value
  */
 public function set($key, $value)
 {
     if (property_exists($this, $key)) {
         $this->{$key} = $value;
     }
     parent::set($key, $value);
     return $this;
 }