$this->name, 'description' => $this->description, 'env_variable' => $this->environmentVariable, 'default_value' => $this->defaultValue, 'user_viewable' => $this->userViewable, 'user_editable' => $this->userEditable, 'rules' => $this->rules, ]; } /** * @return array{name: string, description: string, env_variable: string, default_value: string, user_viewable: bool, user_editable: bool, rules: string, egg_id: int} */ public function attributesForEgg(int $eggId): array { return array_merge($this->attributes(), ['egg_id' => $eggId]); } }