name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @return array|null */ public function getBody() { return $this->body; } /** * @return array|null */ public function getSettings() { return $this->settings; } /** * @return string|null */ public function getStyles() { return $this->styles; } /** * @param string $name */ public function setName($name) { $this->name = $name; } /** * @param array|null $body */ public function setBody($body) { $this->body = $body; } /** * @param array|null $settings */ public function setSettings($settings) { $this->settings = $settings; } /** * @param string|null $styles */ public function setStyles($styles) { $this->styles = $styles; } public function toArray(): array { return [ 'id' => $this->getId(), 'name' => $this->getName(), 'body' => $this->getBody(), 'settings' => $this->getSettings(), 'styles' => $this->getStyles(), 'created_at' => $this->getCreatedAt(), 'updated_at' => $this->getUpdatedAt(), 'deleted_at' => $this->getDeletedAt(), ]; } }