1<?php
2
3final class PhutilConsoleMessage extends Phobject {
4
5  const TYPE_CONFIRM    = 'phutil:confirm';
6  const TYPE_PROMPT     = 'phutil:prompt';
7  const TYPE_INPUT      = 'phutil:in';
8  const TYPE_OUT        = 'phutil:out';
9  const TYPE_ERR        = 'phutil:err';
10  const TYPE_LOG        = 'phutil:log';
11  const TYPE_TTY        = 'phutil:tty?';
12  const TYPE_IS_TTY     = 'phutil:tty!';
13  const TYPE_COLS       = 'phutil:cols?';
14  const TYPE_COL_WIDTH  = 'phutil:cols!';
15  const TYPE_ENABLED    = 'phutil:enabled?';
16  const TYPE_IS_ENABLED = 'phutil:enabled!';
17
18  private $type;
19  private $data;
20
21  public function setData($data) {
22    $this->data = $data;
23    return $this;
24  }
25
26  public function getData() {
27    return $this->data;
28  }
29
30  public function setType($type) {
31    $this->type = $type;
32    return $this;
33  }
34
35  public function getType() {
36    return $this->type;
37  }
38
39}
40