src/Zendesk/API/Traits/Resource/ResourceName.php
<?php
namespace Zendesk\API\Traits\Resource;
/**
* Trait ResourceName
**/
trait ResourceName
{
/**
* Appends the prefix to resource names
* @return string
*/
protected function getResourceNameFromClass()
{
$resourceName = parent::getResourceNameFromClass();
return $this->prefix . $resourceName;
}
}