Постфиксная запись типов вместо префиксной

This commit is contained in:
CORP\phedor 2018-05-04 14:57:52 +03:00
parent 04662a94df
commit 11370eecc9
33 changed files with 95 additions and 79 deletions

View file

@ -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));