code: public function isResourceType($typeName)
  	{
  		if($typeName instanceof \ReflectionClass)
  		{
  			$typeName = $typeName->name;
  		}
  		
  		if(!$this->target instanceof \ReflectionMethod)
  		{
  			return false;
  		}
  		
  		if(class_exists($typeName))
  		{
  			$lookup = strtolower($typeName);
  			$ref = $this->target->getDeclaringClass();
  			
  			if(strtolower($ref->name) == $lookup)
  			{
  				return true;
  			}
  			
  			$next = $ref;
  			
  			while($next = $next->getParentClass())
  			{
  				if(strtolower($next->name) == $lookup)
  				{
  					return true;
  				}
  			}
  			
  			return false;
  		}
  		
  		if(interface_exists($typeName, false))
  		{
  			return $this->target->getDeclaringClass()->implementsInterface($typeName);
  		}
  		
  		return false;
  	}
docs: Check if the target action is declared the given type or sub type (checking for
  interfaces is also supported).
  
  @param string $typeName
  @return boolean