public function check()
    {
        $pass = true;
        foreach ($this->_rules as $rule) {
            if ($rule->lhs() instanceof BasePackage) {
                $package = $rule->lhs();
            } else {
                $package = PackageFactory::create((string)$rule->lhs());
            }

            if (!$package->versionMatch($rule->rhs())) {
                $this->_fail($rule);
                $pass = false;
            } else {
                $this->_pass($rule);
            }
        }

        $this->_checked = true;

        return $pass;
    }
public function check()
    {
        $pass = true;
        foreach ($this->_rules as $rule) {
            if ($rule->lhs() instanceof BasePackage) {
                $package = $rule->lhs();
            } else {
                $package = PackageFactory::create((string)$rule->lhs());
            }

            if (!$package->versionMatch($rule->rhs())) {
                $this->_fail($rule);
                $pass = false;
            } else {
                $this->_pass($rule);
            }
        }

        $this->_checked = true;

        return $pass;
    }
public function check ( ) { $ pass = true ; foreach ( $ this -> _rules as $ rule ) { if ( $ rule -> lhs ( ) instanceof BasePackage ) { $ package = $ rule -> lhs ( ) ; } else { $ package = PackageFactory :: create ( ( string ) $ rule -> lhs ( ) ) ; } if ( ! $ package -> versionMatch ( $ rule -> rhs ( ) ) ) { $ this -> _fail ( $ rule ) ; $ pass = false ; } else { $ this -> _pass ( $ rule ) ; } } $ this -> _checked = true ; return $ pass ; }
Checks all the rules of this class.

@return bool True if all rules are meet
Checks all the rules of this class .