Пример #1
0
 public function get($property, $default = null)
 {
     if ($property == 'length') {
         return $this->length + 4;
     }
     parent::get($property, $default);
 }
Пример #2
0
 /**
  * @Override
  */
 public function set($property, $value)
 {
     parent::set($property, $value);
     if ($property == 'payload') {
         $this->length = strlen($this->payload);
     }
     return $this;
 }