src/Traits/Strings/MiddleNameTrait.php
public function getMiddleName() : ?string 
    {
        if ( ! $this->hasMiddleName()) {
            $this->setMiddleName($this->getDefaultMiddleName());
        }
        return $this->middleName;
    }
public function getMiddleName() : ?string 
    {
        if ( ! $this->hasMiddleName()) {
            $this->setMiddleName($this->getDefaultMiddleName());
        }
        return $this->middleName;
    }
public function getMiddleName ( ) : ? string { if ( ! $ this -> hasMiddleName ( ) ) { $ this -> setMiddleName ( $ this -> getDefaultMiddleName ( ) ) ; } return $ this -> middleName ; }
Get middle name

If no "middle name" value has been set, this method will
set and return a default "middle name" value,
if any such value is available

@see getDefaultMiddleName()

@return string|null middle name or null if no middle name has been set
Get middle name