TestClass
Less than 1 minute
TestClass
This is a test class.
Constants
TEST_CONSTANT
public const TEST_CONSTANT = 'test'
Properties
age
public int $age = 21
height
public float $height = 1.8
active
public bool $active = true
names
public array $names = array (
'one' => 'John',
'two' => 'Jane',
'three' =>
array (
0 => 'Jill',
1 => 'Jack',
),
'four' =>
array (
0 => 'Jenny',
1 => 'James',
2 =>
array (
0 => 1,
1 => 2,
2 => 3,
3 => 4,
4 => 5,
),
),
'five' =>
array (
'primary' => 'John',
'secondary' => 'Jane',
),
)
name
This is a test property.
protected string $name = 'John Doe'
Methods
testMethod
This is a test method.
public testMethod(int $number, ?string $text = 'Hello World'): void
Parameters
Parameter | Type | Description |
---|---|---|
$number | int | |
$text | string |
testMethod2
This is also a test method.
public testMethod2(string $text = 'Hello World'): ?string
Parameters
Parameter | Type | Description |
---|---|---|
$text | string |
Generated by Hazaar API Doc Generator