core/Filesystem/Resource.php
public function hasType( string $type ): bool
	{
		if( substr($type, 0, 2) !== "#/" )
		{
			$type = "#/{$type}";
		}
		return $this->getType() === $type;
	}
public function hasType( string $type ): bool
	{
		if( substr($type, 0, 2) !== "#/" )
		{
			$type = "#/{$type}";
		}
		return $this->getType() === $type;
	}
public function hasType ( string $ type ) : bool { if ( substr ( $ type , 0 , 2 ) !== "#/" ) { $ type = "#/{$type}" ; } return $ this -> getType ( ) === $ type ; }
Compare resource type

@param string $type
@return bool
Compare resource type