mirror of
https://github.com/igorsimdyanov/php8.git
synced 2025-08-10 03:01:01 +00:00
Глава 39: корректура
This commit is contained in:
@ -1,6 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
class Reflection {
|
class Reflection
|
||||||
|
{
|
||||||
/* Методы */
|
/* Методы */
|
||||||
public static export(Reflector $reflector, bool $return = false): string
|
public static export(
|
||||||
|
Reflector $reflector,
|
||||||
|
bool $return = false): string
|
||||||
public static getModifierNames(int $modifiers): array
|
public static getModifierNames(int $modifiers): array
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,9 @@ class ReflectionClass implements Reflector {
|
|||||||
public getShortName(): string
|
public getShortName(): string
|
||||||
public getStartLine(): int|false
|
public getStartLine(): int|false
|
||||||
public getStaticProperties(): ?array
|
public getStaticProperties(): ?array
|
||||||
public getStaticPropertyValue(string $name, mixed &$def_value = ?): mixed
|
public getStaticPropertyValue(
|
||||||
|
string $name,
|
||||||
|
mixed &$def_value = ?): mixed
|
||||||
public getTraitAliases(): array
|
public getTraitAliases(): array
|
||||||
public getTraitNames(): array
|
public getTraitNames(): array
|
||||||
public getTraits(): array
|
public getTraits(): array
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
class ReflectionExtension implements Reflector {
|
class ReflectionExtension implements Reflector
|
||||||
|
{
|
||||||
/* Свойства */
|
/* Свойства */
|
||||||
public string $name;
|
public string $name;
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
class ReflectionFunction extends ReflectionFunctionAbstract {
|
class ReflectionFunction extends ReflectionFunctionAbstract
|
||||||
|
{
|
||||||
/* Константы */
|
/* Константы */
|
||||||
const int IS_DEPRECATED = 262144;
|
const int IS_DEPRECATED = 262144;
|
||||||
|
|
||||||
@ -17,7 +18,9 @@ class ReflectionFunction extends ReflectionFunctionAbstract {
|
|||||||
|
|
||||||
/* Наследуемые методы */
|
/* Наследуемые методы */
|
||||||
private ReflectionFunctionAbstract::__clone(): void
|
private ReflectionFunctionAbstract::__clone(): void
|
||||||
public ReflectionFunctionAbstract::getAttributes(?string $name = null, int $flags = 0): array
|
public ReflectionFunctionAbstract::getAttributes(
|
||||||
|
?string $name = null,
|
||||||
|
int $flags = 0): array
|
||||||
public ReflectionFunctionAbstract::getClosureScopeClass(): ?ReflectionClass
|
public ReflectionFunctionAbstract::getClosureScopeClass(): ?ReflectionClass
|
||||||
public ReflectionFunctionAbstract::getClosureThis(): ?object
|
public ReflectionFunctionAbstract::getClosureThis(): ?object
|
||||||
public ReflectionFunctionAbstract::getClosureUsedVariables(): array
|
public ReflectionFunctionAbstract::getClosureUsedVariables(): array
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
class ReflectionMethod extends ReflectionFunctionAbstract {
|
class ReflectionMethod extends ReflectionFunctionAbstract
|
||||||
|
{
|
||||||
/* Константы */
|
/* Константы */
|
||||||
const int IS_STATIC = 16;
|
const int IS_STATIC = 16;
|
||||||
const int IS_PUBLIC = 1;
|
const int IS_PUBLIC = 1;
|
||||||
@ -17,7 +18,8 @@ class ReflectionMethod extends ReflectionFunctionAbstract {
|
|||||||
/* Методы */
|
/* Методы */
|
||||||
public __construct(object|string $objectOrMethod, string $method)
|
public __construct(object|string $objectOrMethod, string $method)
|
||||||
public __construct(string $classMethod)
|
public __construct(string $classMethod)
|
||||||
public static export(string $class, string $name, bool $return = false): string
|
public static export(
|
||||||
|
string $class, string $name, bool $return = false): string
|
||||||
public getClosure(?object $object = null): Closure
|
public getClosure(?object $object = null): Closure
|
||||||
public getDeclaringClass(): ReflectionClass
|
public getDeclaringClass(): ReflectionClass
|
||||||
public getModifiers(): int
|
public getModifiers(): int
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
class ReflectionParameter implements Reflector {
|
class ReflectionParameter implements Reflector
|
||||||
|
{
|
||||||
/* Свойства */
|
/* Свойства */
|
||||||
public string $name;
|
public string $name;
|
||||||
|
|
||||||
@ -8,7 +9,10 @@ class ReflectionParameter implements Reflector {
|
|||||||
public allowsNull(): bool
|
public allowsNull(): bool
|
||||||
public canBePassedByValue(): bool
|
public canBePassedByValue(): bool
|
||||||
private __clone(): void
|
private __clone(): void
|
||||||
public static export(string $function, string $parameter, bool $return = ?): string
|
public static export(
|
||||||
|
string $function,
|
||||||
|
string $parameter,
|
||||||
|
bool $return = ?): string
|
||||||
public getAttributes(?string $name = null, int $flags = 0): array
|
public getAttributes(?string $name = null, int $flags = 0): array
|
||||||
public getClass(): ?ReflectionClass
|
public getClass(): ?ReflectionClass
|
||||||
public getDeclaringClass(): ?ReflectionClass
|
public getDeclaringClass(): ?ReflectionClass
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
class ReflectionProperty implements Reflector {
|
class ReflectionProperty implements Reflector
|
||||||
|
{
|
||||||
/* Константы */
|
/* Константы */
|
||||||
const int IS_STATIC = 16;
|
const int IS_STATIC = 16;
|
||||||
const int IS_PUBLIC = 1;
|
const int IS_PUBLIC = 1;
|
||||||
@ -13,7 +14,10 @@ class ReflectionProperty implements Reflector {
|
|||||||
/* Методы */
|
/* Методы */
|
||||||
public __construct(object|string $class, string $property)
|
public __construct(object|string $class, string $property)
|
||||||
private __clone(): void
|
private __clone(): void
|
||||||
public static export(mixed $class, string $name, bool $return = ?): string
|
public static export(
|
||||||
|
mixed $class,
|
||||||
|
string $name,
|
||||||
|
bool $return = ?): string
|
||||||
public getAttributes(?string $name = null, int $flags = 0): array
|
public getAttributes(?string $name = null, int $flags = 0): array
|
||||||
public getDeclaringClass(): ReflectionClass
|
public getDeclaringClass(): ReflectionClass
|
||||||
public getDefaultValue(): mixed
|
public getDefaultValue(): mixed
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
interface Reflector extends Stringable {
|
interface Reflector extends Stringable
|
||||||
|
{
|
||||||
/* Методы */
|
/* Методы */
|
||||||
public static export(): string
|
public static export(): string
|
||||||
public __toString(): string
|
public __toString(): string
|
||||||
|
Reference in New Issue
Block a user