2016-10-11 23:45:15 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-10-19 10:31:32 +00:00
|
|
|
/**
|
|
|
|
* Esse commodo excepteur pariatur Lorem est aute incididunt reprehenderit.
|
|
|
|
*
|
|
|
|
* @var int
|
|
|
|
*/
|
2016-10-11 23:45:15 +00:00
|
|
|
const TEST_CONST = 123;
|
|
|
|
|
2016-10-19 10:31:32 +00:00
|
|
|
/**
|
|
|
|
* Pariatur ut laborum tempor voluptate consequat ea deserunt.
|
|
|
|
*
|
|
|
|
* Deserunt enim minim sunt sint ea nisi. Deserunt excepteur tempor id nostrud
|
|
|
|
* laboris commodo ad commodo velit mollit qui non officia id. Nulla duis veniam
|
|
|
|
* veniam officia deserunt et non dolore mollit ea quis eiusmod sit non. Occaecat
|
|
|
|
* consequat sunt culpa exercitation pariatur id reprehenderit nisi incididunt Lorem
|
|
|
|
* sint. Officia culpa pariatur laborum nostrud cupidatat consequat mollit.
|
|
|
|
*/
|
2016-10-11 23:45:15 +00:00
|
|
|
class TestClass implements TestInterface
|
|
|
|
{
|
2016-10-19 10:31:32 +00:00
|
|
|
/**
|
|
|
|
* Anim labore veniam consectetur laboris minim quis aute aute esse nulla ad.
|
|
|
|
*
|
|
|
|
* @var int
|
|
|
|
*/
|
2016-10-11 23:45:15 +00:00
|
|
|
const TEST_CLASS_CONST = 123;
|
2016-10-19 10:31:32 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Lorem excepteur officia sit anim velit veniam enim.
|
|
|
|
*
|
2016-11-18 14:22:24 +00:00
|
|
|
* @var TestClass[]
|
2016-10-19 10:31:32 +00:00
|
|
|
*/
|
2016-10-11 23:45:15 +00:00
|
|
|
public static $staticTestProperty;
|
2016-10-19 10:31:32 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Reprehenderit magna velit mollit ipsum do.
|
|
|
|
*
|
|
|
|
* @var TestClass
|
|
|
|
*/
|
2016-10-11 23:45:15 +00:00
|
|
|
public $testProperty;
|
|
|
|
|
2016-10-19 10:31:32 +00:00
|
|
|
/**
|
|
|
|
* Do magna consequat veniam minim proident eiusmod incididunt aute proident.
|
|
|
|
*/
|
2016-10-11 23:45:15 +00:00
|
|
|
public static function staticTestMethod()
|
|
|
|
{
|
2016-10-19 22:18:36 +00:00
|
|
|
echo self::TEST_CLASS_CONST;
|
2016-10-11 23:45:15 +00:00
|
|
|
}
|
|
|
|
|
2016-10-19 10:31:32 +00:00
|
|
|
/**
|
|
|
|
* Non culpa nostrud mollit esse sunt laboris in irure ullamco cupidatat amet.
|
|
|
|
*
|
|
|
|
* @param TestClass $testParameter Lorem sunt velit incididunt mollit
|
|
|
|
* @return TestClass
|
|
|
|
*/
|
2016-10-21 14:51:11 +00:00
|
|
|
public function testMethod($testParameter): TestInterface
|
2016-10-11 23:45:15 +00:00
|
|
|
{
|
2016-10-19 22:10:47 +00:00
|
|
|
$this->testProperty = $testParameter;
|
2016-10-11 23:45:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
trait TestTrait
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
interface TestInterface
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-10-19 10:31:32 +00:00
|
|
|
/**
|
|
|
|
* Officia aliquip adipisicing et nulla et laboris dolore labore.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
2016-10-11 23:45:15 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
};
|
2016-12-16 00:40:17 +00:00
|
|
|
|
|
|
|
class ChildClass extends TestClass {}
|
2017-04-17 15:03:08 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Lorem ipsum dolor sit amet, consectetur.
|
|
|
|
*/
|
|
|
|
define('TEST_DEFINE_CONSTANT', false);
|
|
|
|
|
|
|
|
print TEST_DEFINE_CONSTANT ? 'true' : 'false';
|
2017-06-10 09:37:39 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Neither this class nor its members are referenced anywhere
|
|
|
|
*/
|
|
|
|
class UnusedClass
|
|
|
|
{
|
|
|
|
public $unusedProperty;
|
|
|
|
|
|
|
|
public function unusedMethod()
|
2018-11-10 22:57:14 +00:00
|
|
|
{
|
2017-06-10 09:37:39 +00:00
|
|
|
}
|
|
|
|
}
|