/** * @param string $type * @return null */ public function setType($type) { if (!isset($this->loadedFields['type'])) { $this->loadProperties(); } $oldValue = null; if (array_key_exists('type', $this->loadedValues)) { $oldValue = $this->loadedValues['type']; } if ($oldValue === $type) { $this->type = $type; return; } return parent::setType($type); }