blob: b28f0a462b165c8a15080a8abd7d78bf55b46f30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
<?php
namespace Aws;
trait HasMonitoringEventsTrait
{
private $monitoringEvents = [];
/**
* Get client-side monitoring events attached to this object. Each event is
* represented as an associative array within the returned array.
*
* @return array
*/
public function getMonitoringEvents()
{
return $this->monitoringEvents;
}
/**
* Prepend a client-side monitoring event to this object's event list
*
* @param array $event
*/
public function prependMonitoringEvent(array $event)
{
array_unshift($this->monitoringEvents, $event);
}
/**
* Append a client-side monitoring event to this object's event list
*
* @param array $event
*/
public function appendMonitoringEvent(array $event)
{
$this->monitoringEvents []= $event;
}
}
|