public function endsWith($word, $identical = false)
    {
        $this->addCondition(__METHOD__, [$word, $identical]);

        return $this;
    }
public function endsWith($word, $identical = false)
    {
        $this->addCondition(__METHOD__, [$word, $identical]);

        return $this;
    }
public function endsWith ( $ word , $ identical = false ) { $ this -> addCondition ( __METHOD__ , [ $ word , $ identical ] ) ; return $ this ; }
Validates if a given value is at the end of the input.

@param string $word
@param bool   $identical

@return \NilPortugues\Validator\Attribute\String\StringAttribute
Validates if a given value is at the end of the input .