Постфиксная запись типов вместо префиксной
This commit is contained in:
parent
04662a94df
commit
11370eecc9
33 changed files with 95 additions and 79 deletions
|
|
@ -12,7 +12,7 @@ class Service
|
|||
{
|
||||
public $viewPath = [];
|
||||
public $webPath = [];
|
||||
public /*.Registry.*/$config;
|
||||
public $config/*: Registry*/;
|
||||
public $template;
|
||||
public $templatePath;
|
||||
public $COMPONENTS_WEB;
|
||||
|
|
@ -51,7 +51,7 @@ class Service
|
|||
return $model;
|
||||
}
|
||||
|
||||
public function options($key, $val, /*.PDOStatement.*/$res) {
|
||||
public function options($key, $val, $res/*: PDOStatement*/) {
|
||||
$result = array();
|
||||
while($res->next()) {
|
||||
$result[] = array('value' => $res->getInt($key), 'name' => $res->getString($val));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue