src/LdapTools/Connection/LdapControl.php
public function toArray()
    {
        $control = [
            'oid' => $this->resolveOid(),
            'iscritical' => $this->criticality
        ];
        if (!is_null($this->value)) {
            $control['value'] = $this->value;
        }

        return $control;
    }
public function toArray()
    {
        $control = [
            'oid' => $this->resolveOid(),
            'iscritical' => $this->criticality
        ];
        if (!is_null($this->value)) {
            $control['value'] = $this->value;
        }

        return $control;
    }
public function toArray ( ) { $ control = [ 'oid' => $ this -> resolveOid ( ) , 'iscritical' => $ this -> criticality ] ; if ( ! is_null ( $ this -> value ) ) { $ control [ 'value' ] = $ this -> value ; } return $ control ; }
Get the control array structure that ldap_set_option expects.

@return array
Get the control array structure that ldap_set_option expects .