classes/phing/filters/LineContains.php
private function initialize()
    {
        $params = $this->getParameters();
        if ($params !== null) {
            foreach ($params as $param) {
                if (self::CONTAINS_KEY === $param->getType()) {
                    $cont = new Contains();
                    $cont->setValue($param->getValue());
                    $this->contains[] = $cont;
                } elseif (self::NEGATE_KEY === $param->getType()) {
                    $this->setNegate(Project::toBoolean($param->getValue()));
                }
            }
        }
    }
private function initialize()
    {
        $params = $this->getParameters();
        if ($params !== null) {
            foreach ($params as $param) {
                if (self::CONTAINS_KEY === $param->getType()) {
                    $cont = new Contains();
                    $cont->setValue($param->getValue());
                    $this->contains[] = $cont;
                } elseif (self::NEGATE_KEY === $param->getType()) {
                    $this->setNegate(Project::toBoolean($param->getValue()));
                }
            }
        }
    }
private function initialize ( ) { $ params = $ this -> getParameters ( ) ; if ( $ params !== null ) { foreach ( $ params as $ param ) { if ( self :: CONTAINS_KEY === $ param -> getType ( ) ) { $ cont = new Contains ( ) ; $ cont -> setValue ( $ param -> getValue ( ) ) ; $ this -> contains [ ] = $ cont ; } elseif ( self :: NEGATE_KEY === $ param -> getType ( ) ) { $ this -> setNegate ( Project :: toBoolean ( $ param -> getValue ( ) ) ) ; } } } }
Parses the parameters to add user-defined contains strings.
Parses the parameters to add user - defined contains strings .