image = new NullMedia(); $this->mainAddress = new NullAddress(); } /** * Get addresses. * * @return array * * @since 1.0.0 */ public function getAddresses() : array { return $this->address; } /** * {@inheritdoc} */ public function toArray() : array { return [ 'id' => $this->id, 'name' => $this->name, 'status' => $this->status, 'description' => $this->description, 'descriptionRaw' => $this->descriptionRaw, 'parent' => $this->parent, 'image' => $this->image, ]; } /** * {@inheritdoc} */ public function jsonSerialize() : mixed { return $this->toArray(); } use \Modules\Attribute\Models\AttributeHolderTrait; }