Elgg\CommitMessage::getPart PHP Method

getPart() public method

Get part of the message
public getPart ( string $part ) : string
$part string One section of the message.
return string
    public function getPart($part)
    {
        if ($part && in_array($part, $this->validMsgParts)) {
            return $this->{$part};
        }
        throw new UnexpectedValueException("`{$part}` not a valid message part.");
    }