Back to CliApplication class

Method isClient

public bool
isClient
(mixed $identifier)
Check the client interface by name.
Parameters
  • string $identifier String identifier for the application interface
Returns
  • bool True if this application is of the given type client interface.
Since
  • 4.0.0

Method isClient - Source code

/**
 * Check the client interface by name.
 *
 * @param   string  $identifier  String identifier for the application interface
 *
 * @return  boolean  True if this application is of the given type client interface.
 *
 * @since   4.0.0
 */
public function isClient($identifier)
{
    return $identifier === 'cli';
}