public function pass($asString = false)
    {
        if (!$this->_checked) {
            $this->check();
        }

        if (!$asString) {
            return $this->_pass;
        }

        $items = [];
        foreach ($this->_pass as $rule) {
            $items[] = "{$rule}";
        }

        return implode(', ', $items);
    }
public function pass($asString = false)
    {
        if (!$this->_checked) {
            $this->check();
        }

        if (!$asString) {
            return $this->_pass;
        }

        $items = [];
        foreach ($this->_pass as $rule) {
            $items[] = "{$rule}";
        }

        return implode(', ', $items);
    }
public function pass ( $ asString = false ) { if ( ! $ this -> _checked ) { $ this -> check ( ) ; } if ( ! $ asString ) { return $ this -> _pass ; } $ items = [ ] ; foreach ( $ this -> _pass as $ rule ) { $ items [ ] = "{$rule}" ; } return implode ( ', ' , $ items ) ; }
Gets all rules marked as PASS.

@param bool $asString True will returns a comma separated string of rules
@return array|string
Gets all rules marked as PASS .