testProperty = $testParameter; } } trait TestTrait { } interface TestInterface { } /** * Officia aliquip adipisicing et nulla et laboris dolore labore. * * @return void */ function test_function() { } new class { const TEST_CLASS_CONST = 123; public static $staticTestProperty; public $testProperty; public static function staticTestMethod() { } public function testMethod($testParameter) { $testVariable = 123; } }; class ChildClass extends TestClass {} /** * Lorem ipsum dolor sit amet, consectetur. */ define('TEST_DEFINE_CONSTANT', false); print TEST_DEFINE_CONSTANT ? 'true' : 'false'; // resolve self type test class Something { public static function getInstance(): self { return new self; } /** * Does nothing */ public function hello() { echo 'Hi!'; } public function selfParamTest(self $something) { $something->hello(); } }