1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161
|
<?php
class SomeClass
{
public function none($title): void
{
}
public function title(string $title): string
{
}
public function nullableTitle(?string $title): ?string
{
}
public function number(int $number): int
{
}
public function nullableNumber(?int $number): ?int
{
}
public function otherNumber(float $number): float
{
}
public function nullableOtherNumber(?float $number): ?float
{
}
public function flag(bool $flag): bool
{
}
public function nullableFlag(?bool $flag): ?bool
{
}
public function options(array $options): array
{
}
public function nullableOptions(?array $options): ?array
{
}
public function object(stdClass $object): stdClass
{
}
public function nullableObject(?stdClass $object): ?stdClass
{
}
public function nsObject(\path\to\my\Object $object): \path\to\my\Object
{
}
public function nullableNsObject(?\path\to\my\Object $object): ?\path\to\my\Object
{
}
public function callable(callable $callable): callable
{
}
public function nullableCallable(?callable $callable): ?callable
{
}
public function someFunction(
$any,
string $name,
int $value,
bool $flag,
array $options,
stdClass $object,
\path\to\my\Object $nsObject
): void {
}
public function getNone(
): void {
}
public function getTitle(
): string {
}
public function getNullableTitle(
): ?string {
}
public function getNumber(
): int {
}
public function getNullableNumber(
): ?int {
}
public function getOtherNumber(
): float {
}
public function getNullableOtherNumber(
): ?float {
}
public function getFlag(
): bool {
}
public function getNullableFlag(
): ?bool {
}
public function getOptions(
): array {
}
public function getNullableOptions(
): ?array {
}
public function getObject(
): stdClass {
}
public function getNullableObject(
): ?stdClass {
}
abstract public function getOtherObject(
): stdClass;
abstract public function getOtherNullableObject(
): ?stdClass;
public function getNsObject(
): \path\to\my\Object {
}
public function getNullableNsObject(
): ?\path\to\my\Object {
}
public function getCallable(
): callable {
}
public function getNullableCallable(
): ?callable {
}
public function neverReturn(
): never {
}
}
|