/**
* @param Resource $resource
* @return string
*/
private function getFilePath(Resource $resource)
{
if ($this->generator->supports($resource, 'specification', array())) {
return $resource->getSpecFilename();
}
return $resource->getSrcFilename();
}