1 | <?php |
||
28 | trait ExtraClauseTrait |
||
29 | { |
||
30 | /** |
||
31 | * {@inheritDoc} |
||
32 | */ |
||
33 | public function before(/*# string */ $position, /*# string */ $rawString) |
||
37 | |||
38 | /** |
||
39 | * {@inheritDoc} |
||
40 | */ |
||
41 | public function after(/*# string */ $position, /*# string */ $rawString) |
||
45 | |||
46 | /** |
||
47 | * @param string $type |
||
48 | * @param string $position |
||
49 | * @param string $rawString |
||
50 | * @return $this |
||
51 | * @access protected |
||
52 | */ |
||
53 | protected function beforeAfter( |
||
63 | |||
64 | /** |
||
65 | * Build AFTER/BEFORE |
||
66 | * |
||
67 | * @param string $beforeOrAfter BEFORE|AFTER |
||
68 | * @param string $position |
||
69 | * @param array $settings |
||
70 | * @return string |
||
71 | * @access protected |
||
72 | */ |
||
73 | protected function buildBeforeAfter( |
||
87 | |||
88 | abstract protected function &getClause(/*# string */ $clauseName)/*# : array */; |
||
89 | } |
||
90 |