<?php


/**
 * @group events
 */
final class PhabricatorEvent extends PhutilEvent {

  private $user;
  private $aphrontRequest;
  private $conduitRequest;

  public function __construct($type, array $data = array()) {
    parent::__construct($type, $data);
  }

  public function setUser(PhabricatorUser $user) {
    $this->user = $user;
    return $this;
  }

  public function getUser() {
    return $this->user;
  }

  public function setAphrontRequest(AphrontRequest $aphront_request) {
    $this->aphrontRequest = $aphront_request;
    return $this;
  }

  public function getAphrontRequest() {
    return $this->aphrontRequest;
  }

  public function setConduitRequest(ConduitAPIRequest $conduit_request) {
    $this->conduitRequest = $conduit_request;
    return $this;
  }

  public function getConduitRequest() {
    return $this->conduitRequest;
  }

}





