mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-05 19:41:55 +02:00
Begin WebSocket support for Broadcast and Player control
This commit is contained in:
parent
2b128b122d
commit
6adf8307c4
516 changed files with 64260 additions and 18 deletions
32
modules/Guzzle/Service/Command/CreateResponseClassEvent.php
Normal file
32
modules/Guzzle/Service/Command/CreateResponseClassEvent.php
Normal file
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
|
||||
namespace Guzzle\Service\Command;
|
||||
|
||||
use Guzzle\Common\Event;
|
||||
|
||||
/**
|
||||
* Event class emitted with the operation.parse_class event
|
||||
*/
|
||||
class CreateResponseClassEvent extends Event
|
||||
{
|
||||
/**
|
||||
* Set the result of the object creation
|
||||
*
|
||||
* @param mixed $result Result value to set
|
||||
*/
|
||||
public function setResult($result)
|
||||
{
|
||||
$this['result'] = $result;
|
||||
$this->stopPropagation();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the created object
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function getResult()
|
||||
{
|
||||
return $this['result'];
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue