public function getParentDirectory(): ?FilePathInterface
    {
        if ($this->myParentDirectory($aboveBaseLevel, $directoryParts)) {
            return new self($this->myIsAbsolute, $aboveBaseLevel, $this->myDrive, $directoryParts, null);
        }

        return null;
    }
public function getParentDirectory(): ?FilePathInterface
    {
        if ($this->myParentDirectory($aboveBaseLevel, $directoryParts)) {
            return new self($this->myIsAbsolute, $aboveBaseLevel, $this->myDrive, $directoryParts, null);
        }

        return null;
    }
public function getParentDirectory ( ) : ? FilePathInterface { if ( $ this -> myParentDirectory ( $ aboveBaseLevel , $ directoryParts ) ) { return new self ( $ this -> myIsAbsolute , $ aboveBaseLevel , $ this -> myDrive , $ directoryParts , null ) ; } return null ; }
Returns the parent directory of the file path or null if file path does not have a parent directory.

@since 1.0.0

@return FilePathInterface|null The parent directory of the file path or null if file path does not have a parent directory.
Returns the parent directory of the file path or null if file path does not have a parent directory .