public function get()
    {
        switch ($this->type) {
            case LDAP_MODIFY_BATCH_REMOVE_ALL:
                // A values key cannot be provided when
                // a remove all type is selected.
                return [
                    static::KEY_ATTRIB => $this->attribute,
                    static::KEY_MODTYPE => $this->type
                ];
            case LDAP_MODIFY_BATCH_REMOVE:
                // Fallthrough.
            case LDAP_MODIFY_BATCH_ADD:
                // Fallthrough.
            case LDAP_MODIFY_BATCH_REPLACE:
                return [
                    static::KEY_ATTRIB => $this->attribute,
                    static::KEY_MODTYPE => $this->type,
                    static::KEY_VALUES => $this->values,
                ];
            default:
                // If the modtype isn't recognized, we'll return null.
                return;
        }
    }
public function get()
    {
        switch ($this->type) {
            case LDAP_MODIFY_BATCH_REMOVE_ALL:
                // A values key cannot be provided when
                // a remove all type is selected.
                return [
                    static::KEY_ATTRIB => $this->attribute,
                    static::KEY_MODTYPE => $this->type
                ];
            case LDAP_MODIFY_BATCH_REMOVE:
                // Fallthrough.
            case LDAP_MODIFY_BATCH_ADD:
                // Fallthrough.
            case LDAP_MODIFY_BATCH_REPLACE:
                return [
                    static::KEY_ATTRIB => $this->attribute,
                    static::KEY_MODTYPE => $this->type,
                    static::KEY_VALUES => $this->values,
                ];
            default:
                // If the modtype isn't recognized, we'll return null.
                return;
        }
    }
public function get ( ) { switch ( $ this -> type ) { case LDAP_MODIFY_BATCH_REMOVE_ALL : // A values key cannot be provided when // a remove all type is selected. return [ static :: KEY_ATTRIB => $ this -> attribute , static :: KEY_MODTYPE => $ this -> type ] ; case LDAP_MODIFY_BATCH_REMOVE : // Fallthrough. case LDAP_MODIFY_BATCH_ADD : // Fallthrough. case LDAP_MODIFY_BATCH_REPLACE : return [ static :: KEY_ATTRIB => $ this -> attribute , static :: KEY_MODTYPE => $ this -> type , static :: KEY_VALUES => $ this -> values , ] ; default : // If the modtype isn't recognized, we'll return null. return ; } }
Returns the built batch modification array.

@return array|null
Returns the built batch modification array .