| 1 | <?php |
||
| 11 | class Parser |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | protected $column = ''; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected $command = ''; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $table = ''; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Initializes the parser instance. |
||
| 30 | * |
||
| 31 | * @param string $name |
||
| 32 | */ |
||
| 33 | public function __construct($name) |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Returns an array of commands. |
||
| 58 | * |
||
| 59 | * @return string[] |
||
| 60 | */ |
||
| 61 | public function commands() |
||
| 74 | |||
| 75 | /** |
||
| 76 | * Returns the command. |
||
| 77 | * |
||
| 78 | * @return string |
||
| 79 | */ |
||
| 80 | public function command() |
||
| 84 | |||
| 85 | /** |
||
| 86 | * Returns the column. |
||
| 87 | * |
||
| 88 | * @return string |
||
| 89 | */ |
||
| 90 | public function column() |
||
| 94 | |||
| 95 | /** |
||
| 96 | * Returns the table. |
||
| 97 | * |
||
| 98 | * @return string |
||
| 99 | */ |
||
| 100 | public function table() |
||
| 104 | } |
||
| 105 |