@@ 29-59 (lines=31) @@ | ||
26 | * |
|
27 | * @author Brian Smith <[email protected]> |
|
28 | */ |
|
29 | class BridgeCreated extends Event implements IdentifiableEventInterface |
|
30 | { |
|
31 | /** |
|
32 | * @var Bridge |
|
33 | */ |
|
34 | private $bridge; |
|
35 | ||
36 | /** |
|
37 | * @return Bridge |
|
38 | */ |
|
39 | public function getBridge() |
|
40 | { |
|
41 | return $this->bridge; |
|
42 | } |
|
43 | ||
44 | public function getEventId() |
|
45 | { |
|
46 | return "{$this->getType()}_{$this->getBridge()->getId()}"; |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @param AriClient $client |
|
51 | * @param string $response |
|
52 | */ |
|
53 | public function __construct(AriClient $client, $response) |
|
54 | { |
|
55 | parent::__construct($client, $response); |
|
56 | ||
57 | $this->bridge = $this->getResponseValue('bridge', '\phparia\Resources\Bridge', $client); |
|
58 | } |
|
59 | } |
|
60 |
@@ 29-59 (lines=31) @@ | ||
26 | * |
|
27 | * @author Brian Smith <[email protected]> |
|
28 | */ |
|
29 | class BridgeDestroyed extends Event implements IdentifiableEventInterface |
|
30 | { |
|
31 | /** |
|
32 | * @var Bridge |
|
33 | */ |
|
34 | private $bridge; |
|
35 | ||
36 | /** |
|
37 | * @return Bridge |
|
38 | */ |
|
39 | public function getBridge() |
|
40 | { |
|
41 | return $this->bridge; |
|
42 | } |
|
43 | ||
44 | public function getEventId() |
|
45 | { |
|
46 | return "{$this->getType()}_{$this->getBridge()->getId()}"; |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @param AriClient $client |
|
51 | * @param string $response |
|
52 | */ |
|
53 | public function __construct(AriClient $client, $response) |
|
54 | { |
|
55 | parent::__construct($client, $response); |
|
56 | ||
57 | $this->bridge = $this->getResponseValue('bridge', '\phparia\Resources\Bridge', $client); |
|
58 | } |
|
59 | } |
|
60 |
@@ 29-59 (lines=31) @@ | ||
26 | * |
|
27 | * @author Brian Smith <[email protected]> |
|
28 | */ |
|
29 | class ChannelConnectedLine extends Event implements IdentifiableEventInterface |
|
30 | { |
|
31 | /** |
|
32 | * @var Channel |
|
33 | */ |
|
34 | private $channel; |
|
35 | ||
36 | /** |
|
37 | * @return Channel |
|
38 | */ |
|
39 | public function getChannel() |
|
40 | { |
|
41 | return $this->channel; |
|
42 | } |
|
43 | ||
44 | public function getEventId() |
|
45 | { |
|
46 | return "{$this->getType()}_{$this->getChannel()->getId()}"; |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @param AriClient $client |
|
51 | * @param string $response |
|
52 | */ |
|
53 | public function __construct(AriClient $client, $response) |
|
54 | { |
|
55 | parent::__construct($client, $response); |
|
56 | ||
57 | $this->channel = $this->getResponseValue('channel', '\phparia\Resources\Channel', $client); |
|
58 | } |
|
59 | } |
|
60 |
@@ 29-60 (lines=32) @@ | ||
26 | * |
|
27 | * @author Brian Smith <[email protected]> |
|
28 | */ |
|
29 | class ChannelCreated extends Event implements IdentifiableEventInterface |
|
30 | { |
|
31 | /** |
|
32 | * @var Channel |
|
33 | */ |
|
34 | private $channel; |
|
35 | ||
36 | /** |
|
37 | * @return Channel |
|
38 | */ |
|
39 | public function getChannel() |
|
40 | { |
|
41 | return $this->channel; |
|
42 | } |
|
43 | ||
44 | public function getEventId() |
|
45 | { |
|
46 | return "{$this->getType()}_{$this->getChannel()->getId()}"; |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @param AriClient $client |
|
51 | * @param string $response |
|
52 | */ |
|
53 | public function __construct(AriClient $client, $response) |
|
54 | { |
|
55 | parent::__construct($client, $response); |
|
56 | ||
57 | $this->channel = $this->getResponseValue('channel', 'phparia\Resources\Channel', $client); |
|
58 | } |
|
59 | ||
60 | } |
|
61 |
@@ 29-59 (lines=31) @@ | ||
26 | * |
|
27 | * @author Brian Smith <[email protected]> |
|
28 | */ |
|
29 | class ChannelStateChange extends Event implements IdentifiableEventInterface |
|
30 | { |
|
31 | /** |
|
32 | * @var Channel |
|
33 | */ |
|
34 | private $channel; |
|
35 | ||
36 | /** |
|
37 | * @return Channel |
|
38 | */ |
|
39 | public function getChannel() |
|
40 | { |
|
41 | return $this->channel; |
|
42 | } |
|
43 | ||
44 | public function getEventId() |
|
45 | { |
|
46 | return "{$this->getType()}_{$this->getChannel()->getId()}"; |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @param AriClient $client |
|
51 | * @param string $response |
|
52 | */ |
|
53 | public function __construct(AriClient $client, $response) |
|
54 | { |
|
55 | parent::__construct($client, $response); |
|
56 | ||
57 | $this->channel = $this->getResponseValue('channel', 'phparia\Resources\Channel', $client); |
|
58 | } |
|
59 | } |
|
60 |
@@ 29-59 (lines=31) @@ | ||
26 | * |
|
27 | * @author Brian Smith <[email protected]> |
|
28 | */ |
|
29 | class ChannelTalkingStarted extends Event implements IdentifiableEventInterface |
|
30 | { |
|
31 | /** |
|
32 | * @var Channel |
|
33 | */ |
|
34 | private $channel; |
|
35 | ||
36 | /** |
|
37 | * @return Channel |
|
38 | */ |
|
39 | public function getChannel() |
|
40 | { |
|
41 | return $this->channel; |
|
42 | } |
|
43 | ||
44 | public function getEventId() |
|
45 | { |
|
46 | return "{$this->getType()}_{$this->getChannel()->getId()}"; |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @param AriClient $client |
|
51 | * @param string $response |
|
52 | */ |
|
53 | public function __construct(AriClient $client, $response) |
|
54 | { |
|
55 | parent::__construct($client, $response); |
|
56 | ||
57 | $this->channel = $this->getResponseValue('channel', '\phparia\Resources\Channel', $client); |
|
58 | } |
|
59 | } |
|
60 |
@@ 29-59 (lines=31) @@ | ||
26 | * |
|
27 | * @author Brian Smith <[email protected]> |
|
28 | */ |
|
29 | class PlaybackFinished extends Event implements IdentifiableEventInterface |
|
30 | { |
|
31 | /** |
|
32 | * @var Playback Playback control object |
|
33 | */ |
|
34 | private $playback; |
|
35 | ||
36 | /** |
|
37 | * @return Playback Playback control object |
|
38 | */ |
|
39 | public function getPlayback() |
|
40 | { |
|
41 | return $this->playback; |
|
42 | } |
|
43 | ||
44 | public function getEventId() |
|
45 | { |
|
46 | return "{$this->getType()}_{$this->getPlayback()->getId()}"; |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @param AriClient $client |
|
51 | * @param string $response |
|
52 | */ |
|
53 | public function __construct(AriClient $client, $response) |
|
54 | { |
|
55 | parent::__construct($client, $response); |
|
56 | ||
57 | $this->playback = $this->getResponseValue('playback', '\phparia\Resources\Playback', $client); |
|
58 | } |
|
59 | } |
|
60 |
@@ 29-59 (lines=31) @@ | ||
26 | * |
|
27 | * @author Brian Smith <[email protected]> |
|
28 | */ |
|
29 | class PlaybackStarted extends Event implements IdentifiableEventInterface |
|
30 | { |
|
31 | /** |
|
32 | * @var Playback Playback control object |
|
33 | */ |
|
34 | private $playback; |
|
35 | ||
36 | /** |
|
37 | * @return Playback Playback control object |
|
38 | */ |
|
39 | public function getPlayback() |
|
40 | { |
|
41 | return $this->playback; |
|
42 | } |
|
43 | ||
44 | public function getEventId() |
|
45 | { |
|
46 | return "{$this->getType()}_{$this->getPlayback()->getId()}"; |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @param AriClient $client |
|
51 | * @param string $response |
|
52 | */ |
|
53 | public function __construct(AriClient $client, $response) |
|
54 | { |
|
55 | parent::__construct($client, $response); |
|
56 | ||
57 | $this->playback = $this->getResponseValue('playback', '\phparia\Resources\Playback', $client); |
|
58 | } |
|
59 | } |
|
60 |
@@ 29-59 (lines=31) @@ | ||
26 | * |
|
27 | * @author Brian Smith <[email protected]> |
|
28 | */ |
|
29 | class RecordingFailed extends Event implements IdentifiableEventInterface |
|
30 | { |
|
31 | /** |
|
32 | * @var LiveRecording Recording control object |
|
33 | */ |
|
34 | private $recording; |
|
35 | ||
36 | /** |
|
37 | * @return LiveRecording Recording control object |
|
38 | */ |
|
39 | public function getRecording() |
|
40 | { |
|
41 | return $this->recording; |
|
42 | } |
|
43 | ||
44 | public function getEventId() |
|
45 | { |
|
46 | return "{$this->getType()}_{$this->getRecording()->getName()}"; |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @param AriClient $client |
|
51 | * @param string $response |
|
52 | */ |
|
53 | public function __construct(AriClient $client, $response) |
|
54 | { |
|
55 | parent::__construct($client, $response); |
|
56 | ||
57 | $this->recording = $this->getResponseValue('recording', '\phparia\Resources\LiveRecording', $client); |
|
58 | } |
|
59 | } |
|
60 |
@@ 29-59 (lines=31) @@ | ||
26 | * |
|
27 | * @author Brian Smith <[email protected]> |
|
28 | */ |
|
29 | class RecordingFinished extends Event implements IdentifiableEventInterface |
|
30 | { |
|
31 | /** |
|
32 | * @var LiveRecording Recording control object |
|
33 | */ |
|
34 | private $recording; |
|
35 | ||
36 | /** |
|
37 | * @return LiveRecording Recording control object |
|
38 | */ |
|
39 | public function getRecording() |
|
40 | { |
|
41 | return $this->recording; |
|
42 | } |
|
43 | ||
44 | public function getEventId() |
|
45 | { |
|
46 | return "{$this->getType()}_{$this->getRecording()->getName()}"; |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @param AriClient $client |
|
51 | * @param string $response |
|
52 | */ |
|
53 | public function __construct(AriClient $client, $response) |
|
54 | { |
|
55 | parent::__construct($client, $response); |
|
56 | ||
57 | $this->recording = $this->getResponseValue('recording', '\phparia\Resources\LiveRecording', $client); |
|
58 | } |
|
59 | } |
|
60 |
@@ 29-59 (lines=31) @@ | ||
26 | * |
|
27 | * @author Brian Smith <[email protected]> |
|
28 | */ |
|
29 | class RecordingStarted extends Event implements IdentifiableEventInterface |
|
30 | { |
|
31 | /** |
|
32 | * @var LiveRecording Recording control object |
|
33 | */ |
|
34 | private $recording; |
|
35 | ||
36 | /** |
|
37 | * @return LiveRecording Recording control object |
|
38 | */ |
|
39 | public function getRecording() |
|
40 | { |
|
41 | return $this->recording; |
|
42 | } |
|
43 | ||
44 | public function getEventId() |
|
45 | { |
|
46 | return "{$this->getType()}_{$this->getRecording()->getName()}"; |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @param AriClient $client |
|
51 | * @param string $response |
|
52 | */ |
|
53 | public function __construct(AriClient $client, $response) |
|
54 | { |
|
55 | parent::__construct($client, $response); |
|
56 | ||
57 | $this->recording = $this->getResponseValue('recording', '\phparia\Resources\LiveRecording', $client); |
|
58 | } |
|
59 | } |
|
60 |
@@ 29-59 (lines=31) @@ | ||
26 | * |
|
27 | * @author Brian Smith <[email protected]> |
|
28 | */ |
|
29 | class StasisEnd extends Event implements IdentifiableEventInterface |
|
30 | { |
|
31 | /** |
|
32 | * @var Channel |
|
33 | */ |
|
34 | private $channel; |
|
35 | ||
36 | /** |
|
37 | * @return Channel |
|
38 | */ |
|
39 | public function getChannel() |
|
40 | { |
|
41 | return $this->channel; |
|
42 | } |
|
43 | ||
44 | public function getEventId() |
|
45 | { |
|
46 | return "{$this->getType()}_{$this->getChannel()->getId()}"; |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @param AriClient $client |
|
51 | * @param string $response |
|
52 | */ |
|
53 | public function __construct(AriClient $client, $response) |
|
54 | { |
|
55 | parent::__construct($client, $response); |
|
56 | ||
57 | $this->channel = $this->getResponseValue('channel', '\phparia\Resources\Channel', $client); |
|
58 | } |
|
59 | } |
|
60 |
@@ 14-44 (lines=31) @@ | ||
11 | use phparia\Resources\Channel; |
|
12 | ||
13 | ||
14 | class ChannelHold extends Event implements IdentifiableEventInterface |
|
15 | { |
|
16 | /** |
|
17 | * @var Channel |
|
18 | */ |
|
19 | private $channel; |
|
20 | ||
21 | /** |
|
22 | * @return Channel |
|
23 | */ |
|
24 | public function getChannel() |
|
25 | { |
|
26 | return $this->channel; |
|
27 | } |
|
28 | ||
29 | public function getEventId() |
|
30 | { |
|
31 | return "{$this->getType()}_{$this->getChannel()->getId()}"; |
|
32 | } |
|
33 | ||
34 | /** |
|
35 | * @param AriClient $client |
|
36 | * @param string $response |
|
37 | */ |
|
38 | public function __construct(AriClient $client, $response) |
|
39 | { |
|
40 | parent::__construct($client, $response); |
|
41 | ||
42 | $this->channel = $this->getResponseValue('channel', 'phparia\Resources\Channel', $client); |
|
43 | } |
|
44 | } |
@@ 13-43 (lines=31) @@ | ||
10 | use phparia\Client\AriClient; |
|
11 | use phparia\Resources\Channel; |
|
12 | ||
13 | class ChannelUnhold extends Event implements IdentifiableEventInterface |
|
14 | { |
|
15 | /** |
|
16 | * @var Channel |
|
17 | */ |
|
18 | private $channel; |
|
19 | ||
20 | /** |
|
21 | * @return Channel |
|
22 | */ |
|
23 | public function getChannel() |
|
24 | { |
|
25 | return $this->channel; |
|
26 | } |
|
27 | ||
28 | public function getEventId() |
|
29 | { |
|
30 | return "{$this->getType()}_{$this->getChannel()->getId()}"; |
|
31 | } |
|
32 | ||
33 | /** |
|
34 | * @param AriClient $client |
|
35 | * @param string $response |
|
36 | */ |
|
37 | public function __construct(AriClient $client, $response) |
|
38 | { |
|
39 | parent::__construct($client, $response); |
|
40 | ||
41 | $this->channel = $this->getResponseValue('channel', 'phparia\Resources\Channel', $client); |
|
42 | } |
|
43 | } |
@@ 29-59 (lines=31) @@ | ||
26 | * |
|
27 | * @author Brian Smith <[email protected]> |
|
28 | */ |
|
29 | class PlaybackContinuing extends Event implements IdentifiableEventInterface |
|
30 | { |
|
31 | /** |
|
32 | * @var Playback Playback control object |
|
33 | */ |
|
34 | private $playback; |
|
35 | ||
36 | /** |
|
37 | * @return Playback Playback control object |
|
38 | */ |
|
39 | public function getPlayback() |
|
40 | { |
|
41 | return $this->playback; |
|
42 | } |
|
43 | ||
44 | public function getEventId() |
|
45 | { |
|
46 | return "{$this->getType()}_{$this->getPlayback()->getId()}"; |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @param AriClient $client |
|
51 | * @param string $response |
|
52 | */ |
|
53 | public function __construct(AriClient $client, $response) |
|
54 | { |
|
55 | parent::__construct($client, $response); |
|
56 | ||
57 | $this->playback = $this->getResponseValue('playback', '\phparia\Resources\Playback', $client); |
|
58 | } |
|
59 | } |
|
60 |