src/DataDefinition/ModelRelationship/ParentChildCondition.php
private function isValidSetter($setter)
    {
        return (\is_array($setter)
            && (2 === \count($setter))
            && isset($setter['to_field'])
            && (isset($setter['from_field']) || isset($setter['value'])));
    }
private function isValidSetter($setter)
    {
        return (\is_array($setter)
            && (2 === \count($setter))
            && isset($setter['to_field'])
            && (isset($setter['from_field']) || isset($setter['value'])));
    }
private function isValidSetter ( $ setter ) { return ( \ is_array ( $ setter ) && ( 2 === \ count ( $ setter ) ) && isset ( $ setter [ 'to_field' ] ) && ( isset ( $ setter [ 'from_field' ] ) || isset ( $ setter [ 'value' ] ) ) ) ; }
Check if the passed value is a valid setter.

@param array $setter The setter.

@return bool
Check if the passed value is a valid setter .