getName() public method

Get the readable name that this operation represents. This is to be used in messages/exceptions.
public getName ( ) : string
return string
Example #1
0
 /**
  * {@inheritdoc}
  */
 public function execute(LdapOperationInterface $operation)
 {
     $result = @call_user_func($operation->getLdapFunction(), $this->connection->getConnection(), ...$operation->getArguments());
     if ($result === false) {
         throw new LdapConnectionException(sprintf('LDAP %s Operation Error. Diagnostic message: "%s"', $operation->getName(), $this->connection->getDiagnosticMessage()));
     }
     return $result;
 }