public function get($property, $default = null) { if ($property == 'length') { return $this->length + 4; } parent::get($property, $default); }
/** * @Override */ public function set($property, $value) { parent::set($property, $value); if ($property == 'payload') { $this->length = strlen($this->payload); } return $this; }