@@ -130,6 +130,9 @@ |
||
130 | 130 | return $this->_viewPath; |
131 | 131 | } |
132 | 132 | |
133 | + /** |
|
134 | + * @param string $file |
|
135 | + */ |
|
133 | 136 | public function render($file, $data) |
134 | 137 | { |
135 | 138 | return Yii::$app->view->render($file, $data, $this); |
@@ -133,6 +133,10 @@ |
||
133 | 133 | return $this; |
134 | 134 | } |
135 | 135 | |
136 | + /** |
|
137 | + * @param string $name |
|
138 | + * @param boolean $value |
|
139 | + */ |
|
136 | 140 | public function addOption($name, $value) |
137 | 141 | { |
138 | 142 | if (!isset($this->options[$name])) { |
@@ -87,6 +87,9 @@ |
||
87 | 87 | return ($this->isFullUri($this->uri) ? '' : $this->getDb()->getBaseUri()) . $this->uri; |
88 | 88 | } |
89 | 89 | |
90 | + /** |
|
91 | + * @param string $uri |
|
92 | + */ |
|
90 | 93 | public function isFullUri($uri) |
91 | 94 | { |
92 | 95 | return preg_match('/^https?:\\/\\//i', $uri); |
@@ -63,7 +63,7 @@ |
||
63 | 63 | } |
64 | 64 | |
65 | 65 | /** |
66 | - * @return mixed|string |
|
66 | + * @return string |
|
67 | 67 | */ |
68 | 68 | public function getRawData() |
69 | 69 | { |
@@ -207,6 +207,9 @@ |
||
207 | 207 | return $result === false ? false : true; |
208 | 208 | } |
209 | 209 | |
210 | + /** |
|
211 | + * @param string $defaultScenario |
|
212 | + */ |
|
210 | 213 | public function batchQuery($defaultScenario, $data = [], array $options = []) |
211 | 214 | { |
212 | 215 | $options['batch'] = true; |
@@ -78,7 +78,7 @@ |
||
78 | 78 | protected $_errorChecker; |
79 | 79 | |
80 | 80 | /** |
81 | - * @param null $name |
|
81 | + * @param string $name |
|
82 | 82 | * @return ConnectionInterface|AbstractConnection |
83 | 83 | */ |
84 | 84 | public static function getDb($name = null, $class = ConnectionInterface::class) |
@@ -137,6 +137,10 @@ |
||
137 | 137 | return $this->createRequest($query); |
138 | 138 | } |
139 | 139 | |
140 | + /** |
|
141 | + * @param string $action |
|
142 | + * @param string $table |
|
143 | + */ |
|
140 | 144 | public function createQuery($action, $table, array $options = []) |
141 | 145 | { |
142 | 146 | $class = $this->db->queryClass; |