public function matchesDriveOrNull($drive)
    {
        return null === $drive ||
            !$this->hasDrive() ||
            $this->driveSpecifiersMatch($this->drive(), $drive);
    }
public function matchesDriveOrNull($drive)
    {
        return null === $drive ||
            !$this->hasDrive() ||
            $this->driveSpecifiersMatch($this->drive(), $drive);
    }
public function matchesDriveOrNull ( $ drive ) { return null === $ drive || ! $ this -> hasDrive ( ) || $ this -> driveSpecifiersMatch ( $ this -> drive ( ) , $ drive ) ; }
Returns true if this path's drive specifier matches the supplied drive
specifier, or if either drive specifier is null.

This method is not case sensitive.

@param string|null $drive The driver specifier to compare to.

@return boolean True if the drive specifiers match, or either drive specifier is null.
Returns true if this path s drive specifier matches the supplied drive specifier or if either drive specifier is null .