/**
* Return the descriptors value for the given descriptor.
*
* @param string $descriptor
*
* @return mixed
*/
public function get($descriptor)
{
if (!isset($this->descriptors[$descriptor])) {
throw new \InvalidArgumentException(sprintf('Descriptor "%s" not supported for resource "%s" of class "%s". Supported descriptors: "%s"', $descriptor, $this->resource->getPath(), get_class($this->resource), implode('", "', array_keys($this->descriptors))));
}
return $this->descriptors[$descriptor];
}