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