src/Resources/SnsEndpoint.php
public function getResources()
    {
        if(!empty($this->parentResource)) {
            return $this->getEndpointsAsArray($this->parentResource);
        } else {
            $resources = $this->listResources(Sns::FORMAT_ARN);
            foreach ($resources as $key => $value){
                $resources[$key] = ['EndpointArn' => $value];
            }

            return $resources;
        }
    }
public function getResources()
    {
        if(!empty($this->parentResource)) {
            return $this->getEndpointsAsArray($this->parentResource);
        } else {
            $resources = $this->listResources(Sns::FORMAT_ARN);
            foreach ($resources as $key => $value){
                $resources[$key] = ['EndpointArn' => $value];
            }

            return $resources;
        }
    }
{@inheritdoc}