@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | * |
89 | 89 | * @throws SimpleCrudException |
90 | 90 | * |
91 | - * @return QueryInterface|null |
|
91 | + * @return FieldInterface |
|
92 | 92 | */ |
93 | 93 | public function __call($name, $arguments) |
94 | 94 | { |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | * |
174 | 174 | * @param string $name |
175 | 175 | * |
176 | - * @return null|mixed |
|
176 | + * @return string |
|
177 | 177 | */ |
178 | 178 | public function getAttribute($name) |
179 | 179 | { |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -spl_autoload_register(function ($class) { |
|
3 | +spl_autoload_register(function($class) { |
|
4 | 4 | if (strpos($class, 'SimpleCrud\\') !== 0) { |
5 | 5 | return; |
6 | 6 | } |
@@ -36,7 +36,7 @@ |
||
36 | 36 | /** |
37 | 37 | * Run the query and return the first value. |
38 | 38 | * |
39 | - * @return Row|null |
|
39 | + * @return \SimpleCrud\Row|null |
|
40 | 40 | */ |
41 | 41 | public function get() |
42 | 42 | { |
@@ -2,14 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace SimpleCrud\Queries\Mysql; |
4 | 4 | |
5 | -use SimpleCrud\Queries\BaseQuery; |
|
6 | -use SimpleCrud\Queries\WhereExtendedTrait; |
|
7 | -use SimpleCrud\Queries\LimitTrait; |
|
8 | -use SimpleCrud\RowCollection; |
|
9 | 5 | use SimpleCrud\Entity; |
10 | 6 | use SimpleCrud\SimpleCrudException; |
11 | -use PDOStatement; |
|
12 | -use PDO; |
|
13 | 7 | |
14 | 8 | /** |
15 | 9 | * Manages a database select query with just one result. |