public function get( $name, $operation, $value)
    {

        $filterComponents = [];
        foreach( $this->reflPropertyMappers as $propertyMapper ) {
            $filterComponents[] = $this->getHelper( $propertyMapper, $name, $operation, $value );
        }

        // not a multi - just return the lone FindFilterComponent
        if( 1 === count($filterComponents) ) {
            return $filterComponents[0];
        }

        // is a multi - instantiate all the FindFilterComponents and build a FindFilterComponentMulti
        return new FindFilterComponentMulti(
            $filterComponents,
            $operation,
            $value
        );

    }
public function get( $name, $operation, $value)
    {

        $filterComponents = [];
        foreach( $this->reflPropertyMappers as $propertyMapper ) {
            $filterComponents[] = $this->getHelper( $propertyMapper, $name, $operation, $value );
        }

        // not a multi - just return the lone FindFilterComponent
        if( 1 === count($filterComponents) ) {
            return $filterComponents[0];
        }

        // is a multi - instantiate all the FindFilterComponents and build a FindFilterComponentMulti
        return new FindFilterComponentMulti(
            $filterComponents,
            $operation,
            $value
        );

    }
public function get ( $ name , $ operation , $ value ) { $ filterComponents = [ ] ; foreach ( $ this -> reflPropertyMappers as $ propertyMapper ) { $ filterComponents [ ] = $ this -> getHelper ( $ propertyMapper , $ name , $ operation , $ value ) ; } // not a multi - just return the lone FindFilterComponent if ( 1 === count ( $ filterComponents ) ) { return $ filterComponents [ 0 ] ; } // is a multi - instantiate all the FindFilterComponents and build a FindFilterComponentMulti return new FindFilterComponentMulti ( $ filterComponents , $ operation , $ value ) ; }
Return a new instance of a FindFilterComponent but Multi-PropertyMapperAware
@return Bond\Container\FindFilterComponent
Return a new instance of a FindFilterComponent but Multi - PropertyMapperAware