zendesk/zendesk_api_client_php

View on GitHub
src/Zendesk/API/Traits/Resource/ResourceName.php

Summary

Maintainability
A
0 mins
Test Coverage
<?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;
    }
}