public function getAttributeConditions($attributeName, $unindexablePredicates = false)
    {
        return array_filter(
            $this->parts,
            function (Condition $part) use ($attributeName, $unindexablePredicates) {
                if ($part instanceof self) {
                    return $part->getAttributeConditions($attributeName, $unindexablePredicates);
                }

                return !$unindexablePredicates && in_array($attributeName, $part->getAttributes());
            }
        );
    }
public function getAttributeConditions($attributeName, $unindexablePredicates = false)
    {
        return array_filter(
            $this->parts,
            function (Condition $part) use ($attributeName, $unindexablePredicates) {
                if ($part instanceof self) {
                    return $part->getAttributeConditions($attributeName, $unindexablePredicates);
                }

                return !$unindexablePredicates && in_array($attributeName, $part->getAttributes());
            }
        );
    }
public function getAttributeConditions ( $ attributeName , $ unindexablePredicates = false ) { return array_filter ( $ this -> parts , function ( Condition $ part ) use ( $ attributeName , $ unindexablePredicates ) { if ( $ part instanceof self ) { return $ part -> getAttributeConditions ( $ attributeName , $ unindexablePredicates ) ; } return ! $ unindexablePredicates && in_array ( $ attributeName , $ part -> getAttributes ( ) ) ; } ) ; }
Return all conditions of the specified type in this expression which use
the indicated attribute as an operand.

@param string $attributeName
@param bool   $unindexablePredicates Whether to return only indexable predicates
(using AND) or only unindexable predicates
(using OR or NOT)

@return Condition[]
Return all conditions of the specified type in this expression which use the indicated attribute as an operand .