1 | <?php |
||
26 | class Reference extends Component |
||
|
|||
27 | { |
||
28 | |||
29 | /** |
||
30 | * All references options. |
||
31 | * |
||
32 | * @var array |
||
33 | */ |
||
34 | public static $REFERENCES_OPTIONS = array( |
||
35 | 'MATCH' => array(1, 'var'), |
||
36 | 'ON DELETE' => array(2, 'var'), |
||
37 | 'ON UPDATE' => array(3, 'var'), |
||
38 | ); |
||
39 | |||
40 | /** |
||
41 | * The referenced table. |
||
42 | * |
||
43 | * @var Expression |
||
44 | */ |
||
45 | public $table; |
||
46 | |||
47 | /** |
||
48 | * The referenced columns. |
||
49 | * |
||
50 | * @var array |
||
51 | */ |
||
52 | public $columns; |
||
53 | |||
54 | /** |
||
55 | * The options of the referencing. |
||
56 | * |
||
57 | * @var OptionsArray |
||
58 | */ |
||
59 | public $options; |
||
60 | |||
61 | /** |
||
62 | * Constructor. |
||
63 | * |
||
64 | * @param Expression $table The name of the table referenced. |
||
65 | * @param array $columns The columns referenced. |
||
66 | * @param OptionsArray $options The options. |
||
67 | */ |
||
68 | 7 | public function __construct($table = null, array $columns = array(), $options = null) |
|
74 | |||
75 | /** |
||
76 | * @param Parser $parser The parser that serves as context. |
||
77 | * @param TokensList $list The list of tokens that are being parsed. |
||
78 | * @param array $options Parameters for parsing. |
||
79 | * |
||
80 | * @return Reference |
||
81 | */ |
||
82 | 6 | public static function parse(Parser $parser, TokensList $list, array $options = array()) |
|
143 | |||
144 | /** |
||
145 | * @param Reference $component The component to be built. |
||
146 | * @param array $options Parameters for building. |
||
147 | * |
||
148 | * @return string |
||
149 | */ |
||
150 | 2 | public static function build($component, array $options = array()) |
|
158 | } |
||
159 |
This check marks property names that have not been written in camelCase.
In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection string becomes
databaseConnectionString
.