1 | <?php |
||
30 | trait MappingTrait |
||
31 | { |
||
32 | /** |
||
33 | * table mapping storage |
||
34 | * |
||
35 | * @var array |
||
36 | * @access protected |
||
37 | */ |
||
38 | protected $tbl_mapping = []; |
||
39 | |||
40 | /** |
||
41 | * column mapping storage |
||
42 | * |
||
43 | * @var array |
||
44 | * @access protected |
||
45 | */ |
||
46 | protected $col_mapping = []; |
||
47 | |||
48 | /** |
||
49 | * {@inheritDoc} |
||
50 | */ |
||
51 | public function setMapping(/*# string */ $id, $tableMap, $columnMap) |
||
66 | |||
67 | /** |
||
68 | * Map the given table name to another name |
||
69 | * |
||
70 | * @param string $id |
||
71 | * @param string $tableName |
||
72 | * @return string |
||
73 | * @access protected |
||
74 | */ |
||
75 | protected function mapTable( |
||
82 | |||
83 | /** |
||
84 | * Map the given column name to another name |
||
85 | * |
||
86 | * @param string $columnName |
||
87 | * @return string |
||
88 | * @access public |
||
89 | */ |
||
90 | public function mapColumn(/*# string */ $columnName)/*# : string */ |
||
94 | |||
95 | /** |
||
96 | * Do the actual mapping |
||
97 | * |
||
98 | * @param string $input |
||
99 | * @param string|callable $mapping |
||
100 | * @return string |
||
101 | * @access protected |
||
102 | */ |
||
103 | protected function doMapping( |
||
115 | } |
||
116 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.