public function getPart(string $contentType)
    {
        if (! isset($this->parts[$contentType])) {
            return null;
        }

        return $this->parts[$contentType];
    }
public function getPart(string $contentType)
    {
        if (! isset($this->parts[$contentType])) {
            return null;
        }

        return $this->parts[$contentType];
    }
public function getPart ( string $ contentType ) { if ( ! isset ( $ this -> parts [ $ contentType ] ) ) { return null ; } return $ this -> parts [ $ contentType ] ; }
Get a Part object for the specified content type
Returns NULL if not set.

@param string $contentType

@return Part|null
Get a Part object for the specified content type Returns NULL if not set .