isEmpty() public method

Returns whether the collection is empty.
public isEmpty ( ) : boolean
return boolean Returns `true` if the collection is empty and `false` otherwise.
示例#1
0
 /**
  * {@inheritdoc}
  */
 public function hasCommands()
 {
     return !$this->commands->isEmpty();
 }
示例#2
0
 /**
  * Returns whether the command has any sub-commands.
  *
  * @return bool Returns `true` if the command has sub-commands and `false`
  *              otherwise.
  */
 public function hasSubCommands()
 {
     return !$this->subCommands->isEmpty();
 }