Elgg\CommitMessage::getPart PHP Méthode

getPart() public méthode

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