Beispiel #1
0
 public function defaultSensors()
 {
     $sensors = parent::defaultSensors();
     return $sensors;
 }
Beispiel #2
0
 public function simpleProperties()
 {
     return array_merge(parent::simpleProperties(), ['server' => $this->getServer(), 'id' => $this->getId()]);
 }
Beispiel #3
0
 public function simpleProperties()
 {
     return array_merge(parent::simpleProperties(), ['object' => $this->getObject(), 'resource' => $this->getResource()]);
 }
Beispiel #4
0
 public function behaviors()
 {
     return array_merge(parent::behaviors(), ['HasSensors' => ['class' => HasSensorsBehavior::className()]]);
 }
Beispiel #5
0
 public function defaultSensors()
 {
     $sensors = parent::defaultSensors();
     $sensors['stale-provider'] = ['class' => StaleProviderSensor::className()];
     return $sensors;
 }
Beispiel #6
0
 public function getPackage()
 {
     $package = parent::getPackage();
     $package['id'] = $this->getId();
     return $package;
 }