public function getArguments() { if (is_null($this->properties['dn'])) { throw new InvalidArgumentException('The DN cannot be left null for an LDAP add operation.'); } return [$this->properties['dn'], $this->properties['attributes']]; }