src/LdapTools/Resolver/BaseValueResolver.php
public static function getInstance(LdapObjectSchema $schema = null, $values, $type)
    {
        $instance = AttributeValueResolver::class;
        
        if ($values instanceof BatchCollection) {
            $instance = BatchValueResolver::class;
        } elseif ($values instanceof OperatorCollection) {
            $instance = OperatorValueResolver::class;
        }
        
        return new $instance($schema, $values, $type);
    }
public static function getInstance(LdapObjectSchema $schema = null, $values, $type)
    {
        $instance = AttributeValueResolver::class;
        
        if ($values instanceof BatchCollection) {
            $instance = BatchValueResolver::class;
        } elseif ($values instanceof OperatorCollection) {
            $instance = OperatorValueResolver::class;
        }
        
        return new $instance($schema, $values, $type);
    }
public static function getInstance ( LdapObjectSchema $ schema = null , $ values , $ type ) { $ instance = AttributeValueResolver :: class ; if ( $ values instanceof BatchCollection ) { $ instance = BatchValueResolver :: class ; } elseif ( $ values instanceof OperatorCollection ) { $ instance = OperatorValueResolver :: class ; } return new $ instance ( $ schema , $ values , $ type ) ; }
Factory method for instantiation.

@param LdapObjectSchema|null $schema
@param BatchCollection|OperatorCollection|array $values
@param int $type
@return AttributeValueResolver|BatchValueResolver
Factory method for instantiation .