| 1 | <?php  | 
            ||
| 7 | class Answer implements Move  | 
            ||
| 8 | { | 
            ||
| 9 | /**  | 
            ||
| 10 | * @var string  | 
            ||
| 11 | */  | 
            ||
| 12 | private $text;  | 
            ||
| 13 | |||
| 14 | /**  | 
            ||
| 15 | * Constructor.  | 
            ||
| 16 | */  | 
            ||
| 17 | 18 | public function __construct()  | 
            |
| 20 | |||
| 21 | /**  | 
            ||
| 22 | * @return string  | 
            ||
| 23 | */  | 
            ||
| 24 | 15 | public function getText()  | 
            |
| 28 | |||
| 29 | /**  | 
            ||
| 30 | * Static constructor.  | 
            ||
| 31 | *  | 
            ||
| 32 | * @param $text  | 
            ||
| 33 | *  | 
            ||
| 34 | * @return Answer  | 
            ||
| 35 | */  | 
            ||
| 36 | 18 | public static function create($text)  | 
            |
| 44 | }  | 
            ||
| 45 |