LdapTools\BatchModify\Batch::toArray PHP Method

toArray() public method

Get the array representation of this batch action.
public toArray ( ) : array
return array
    public function toArray()
    {
        $batch = ['attrib' => $this->attribute, 'modtype' => $this->modtype];
        if (!($this->modtype === LDAP_MODIFY_BATCH_REMOVE_ALL)) {
            $batch['values'] = $this->resolve($this->values);
        }
        return $batch;
    }