. /** * Description of this file. * * @package samples * @author Diogo Cordeiro * @copyright 2019 Free Software Foundation, Inc http://www.fsf.org * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later */ namespace samples; defined('GNUSOCIAL') || die(); require_once __DIR__ . DIRECTORY_SEPARATOR . 'SampleHandler.php'; /** * Description of this class. * * @copyright 2019 Free Software Foundation, Inc http://www.fsf.org * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later */ class MySampleClass { /** * Constructor for the sample class. * * @param string $dummy_word just because. * @param int $result another just because. */ public function __construct(string $dummy_word = '', ?int $result = null) { global $demo; $this->niceWorld(); } /** * How cool is this function. * * @return string */ public function niceWorld(): string { return 'hello, world.'; } }