public function setDisplay($display) { $display = strtolower($display); if (in_array($display, $this->displays) === false) { throw new NotAllowedTypeException(['type' => $display, 'to' => 'Display']); } $this->setAttribute('display', $display); }