src/Str.php
private function pad(
        int $length,
        string $character = ' ',
        int $direction = self::PAD_RIGHT
    ): self {
        return new self(\str_pad(
            $this->value,
            $length,
            $character,
            $direction
        ), $this->encoding);
    }
private function pad(
        int $length,
        string $character = ' ',
        int $direction = self::PAD_RIGHT
    ): self {
        return new self(\str_pad(
            $this->value,
            $length,
            $character,
            $direction
        ), $this->encoding);
    }
private function pad ( int $ length , string $ character = ' ' , int $ direction = self :: PAD_RIGHT ) : self { return new self ( \ str_pad ( $ this -> value , $ length , $ character , $ direction ) , $ this -> encoding ) ; }
Pad the string

@param int $length
@param string $character
@param int $direction

@return self
Pad the string