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