src/Client.php
public function getContentTypes(Query $query = null): ResourceArray
    {
        /** @var ResourceArray $contentTypes */
        $contentTypes = $this->request(
            'GET',
            '/spaces/'.$this->spaceId.'/environments/'.$this->environmentId.'/content_types',
            ['query' => $query ? $query->getQueryData() : []]
        );

        return $contentTypes;
    }
public function getContentTypes(Query $query = null): ResourceArray
    {
        /** @var ResourceArray $contentTypes */
        $contentTypes = $this->request(
            'GET',
            '/spaces/'.$this->spaceId.'/environments/'.$this->environmentId.'/content_types',
            ['query' => $query ? $query->getQueryData() : []]
        );

        return $contentTypes;
    }
{@inheritdoc}