mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-04 01:10:06 +08:00
19 lines
265 B
PHP
19 lines
265 B
PHP
|
<?php
|
||
|
class Model {
|
||
|
/**
|
||
|
* getResult
|
||
|
*
|
||
|
* @return Model[]
|
||
|
*/
|
||
|
public function getResult() {
|
||
|
}
|
||
|
}
|
||
|
$someModel = new Model();
|
||
|
$results = $someModel->getResult(
|
||
|
1
|
||
|
);
|
||
|
|
||
|
foreach( $results as $result ) {
|
||
|
$foo = $result->hoge;
|
||
|
$foo = $result->
|