src/Manipulator.php
public function getPossessive() : Manipulator
    {
        $modifiedString = $this->trimEnd();

        if (mb_substr($modifiedString, -1) === 's') {
            $modifiedString .= '\'';
        } else {
            $modifiedString .= '\'s';
        }

        return new static($modifiedString);
    }
public function getPossessive() : Manipulator
    {
        $modifiedString = $this->trimEnd();

        if (mb_substr($modifiedString, -1) === 's') {
            $modifiedString .= '\'';
        } else {
            $modifiedString .= '\'s';
        }

        return new static($modifiedString);
    }
public function getPossessive ( ) : Manipulator { $ modifiedString = $ this -> trimEnd ( ) ; if ( mb_substr ( $ modifiedString , - 1 ) === 's' ) { $ modifiedString .= '\'' ; } else { $ modifiedString .= '\'s' ; } return new static ( $ modifiedString ) ; }
Get Possessive Version of String

@return object|Manipulator
Get Possessive Version of String