src/Entity/XiboCommand.php
public function create($name, $description, $code)
	{
		$this->userId = $this->getEntityProvider()->getMe()->getId();
		$this->command = $name;
		$this->description = $description;
		$this->code = $code;
		$this->getLogger()->info('Creating new display command ' . $name);
		$response = $this->doPost('/command', $this->toArray());

		return $this->hydrate($response);
	}
public function create($name, $description, $code)
	{
		$this->userId = $this->getEntityProvider()->getMe()->getId();
		$this->command = $name;
		$this->description = $description;
		$this->code = $code;
		$this->getLogger()->info('Creating new display command ' . $name);
		$response = $this->doPost('/command', $this->toArray());

		return $this->hydrate($response);
	}
public function create ( $ name , $ description , $ code ) { $ this -> userId = $ this -> getEntityProvider ( ) -> getMe ( ) -> getId ( ) ; $ this -> command = $ name ; $ this -> description = $ description ; $ this -> code = $ code ; $ this -> getLogger ( ) -> info ( 'Creating new display command ' . $ name ) ; $ response = $ this -> doPost ( '/command' , $ this -> toArray ( ) ) ; return $ this -> hydrate ( $ response ) ; }
Create a new command.

@param string $name Name of the command
@param string $description Command description
@param string $code Unique code for this command
@return XiboCommand
Create a new command .