/** * {@inheritdoc} */ public function __set($property, $value) { if ($property == 'current_sign_in_ip' || $property == 'last_sign_in_ip') { $value = $this->get_ip_as_int($value); } parent::__set($property, $value); }