1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <?php
- namespace samples;
- defined('GNUSOCIAL') || die();
- require_once __DIR__ . DIRECTORY_SEPARATOR . 'SampleHandler.php';
- class MySampleClass
- {
-
- public function __construct(string $dummy_word = '', ?int $result = null)
- {
- global $demo;
- $this->niceWorld();
- }
-
- public function niceWorld(): string
- {
- return 'hello, world.';
- }
- }
|