| 1 | <?php |
||
| 31 | final class Aframe |
||
| 32 | { |
||
| 33 | |||
| 34 | /** |
||
| 35 | * A-Frame Scenes |
||
| 36 | * |
||
| 37 | * All scenes will be in this array as Scene objects with index of custom identifier. |
||
| 38 | * |
||
| 39 | * @var $scenes |
||
| 40 | */ |
||
| 41 | private $scenes; |
||
| 42 | |||
| 43 | private $configObj; |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Constructor |
||
| 47 | */ |
||
| 48 | 58 | public function __construct() |
|
| 53 | |||
| 54 | 1 | public function config() |
|
| 58 | |||
| 59 | /** |
||
| 60 | * Scene |
||
| 61 | * |
||
| 62 | * Work with untitled scene or scene by name |
||
| 63 | * |
||
| 64 | * @param string $name |
||
| 65 | * @return Scene |
||
| 66 | */ |
||
| 67 | 56 | public function scene(string $name = 'untitled'): Scene |
|
| 71 | } |
||
| 72 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.