public function getTypeAttributes() { if (empty($this->type)) { return []; } return (array) $this->type->typeAttributes; }