Page MenuHomePhorge

PhutilEvent.php
No OneTemporary

PhutilEvent.php

<?php
/**
* @concrete-extensible
*/
class PhutilEvent extends Phobject {
private $type;
private $data;
private $stop = false;
public function __construct($type, array $data = array()) {
$this->type = $type;
$this->data = $data;
}
public function getType() {
return $this->type;
}
public function getValue($key, $default = null) {
return idx($this->data, $key, $default);
}
public function setValue($key, $value) {
$this->data[$key] = $value;
return $this;
}
public function stop() {
$this->stop = true;
return $this;
}
public function isStopped() {
return $this->stop;
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, Mar 24, 01:57 (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1115377
Default Alt Text
PhutilEvent.php (650 B)

Event Timeline