'id', 'image_id' => 'imageId', ]; /** * {@inheritdoc} */ protected function getAliases(): array { return parent::getAliases() + [ 'created_at' => new Alias('createdAt', \DateTimeImmutable::class), 'updated_at' => new Alias('updatedAt', \DateTimeImmutable::class), ]; } public function create(array $userOptions): Creatable { $response = $this->executeWithState($this->api->postImageMembers()); return $this->populateFromResponse($response); } public function retrieve() { $response = $this->executeWithState($this->api->getImageMember()); $this->populateFromResponse($response); } public function delete() { $this->executeWithState($this->api->deleteImageMember()); } public function updateStatus($status) { $this->status = $status; $this->executeWithState($this->api->putImageMember()); } }