classes/phing/types/PatternSetNameEntry.php
public function valid(Project $project)
    {
        if ($this->ifCond !== null && $project->getProperty($this->ifCond) === null) {
            return false;
        } else {
            if ($this->unlessCond !== null && $project->getProperty($this->unlessCond) !== null) {
                return false;
            }
        }

        return true;
    }
public function valid(Project $project)
    {
        if ($this->ifCond !== null && $project->getProperty($this->ifCond) === null) {
            return false;
        } else {
            if ($this->unlessCond !== null && $project->getProperty($this->unlessCond) !== null) {
                return false;
            }
        }

        return true;
    }
public function valid ( Project $ project ) { if ( $ this -> ifCond !== null && $ project -> getProperty ( $ this -> ifCond ) === null ) { return false ; } else { if ( $ this -> unlessCond !== null && $ project -> getProperty ( $ this -> unlessCond ) !== null ) { return false ; } } return true ; }
Checks whether pattern should be applied based on whether the if and unless
properties are set in project.

@param  Project $project
@return boolean
Checks whether pattern should be applied based on whether the if and unless properties are set in project .