src/Constraints/Group.php
public function equals(Constrainer $constrainer)
    {
        if (! $constrainer instanceof static) {
            return false;
        }

        if ($this->constraints->count() != $constrainer->constraints->count()) {
            return false;
        }

        foreach ($this->constraints as $index => $constraint) {
            if (! $constrainer->constraints[$index]->equals($constraint)) {
                return false;
            }
        }

        return true;
    }
public function equals(Constrainer $constrainer)
    {
        if (! $constrainer instanceof static) {
            return false;
        }

        if ($this->constraints->count() != $constrainer->constraints->count()) {
            return false;
        }

        foreach ($this->constraints as $index => $constraint) {
            if (! $constrainer->constraints[$index]->equals($constraint)) {
                return false;
            }
        }

        return true;
    }
public function equals ( Constrainer $ constrainer ) { if ( ! $ constrainer instanceof static ) { return false ; } if ( $ this -> constraints -> count ( ) != $ constrainer -> constraints -> count ( ) ) { return false ; } foreach ( $ this -> constraints as $ index => $ constraint ) { if ( ! $ constrainer -> constraints [ $ index ] -> equals ( $ constraint ) ) { return false ; } } return true ; }
Determine whether the given constrainer is equal to this object.

@param  \Silber\Bouncer\Constraints\Constrainer  $constrainer
@return bool
Determine whether the given constrainer is equal to this object .