ReflectionClass Sınıfı

(PHP 5, PHP 7, PHP 8)

Giriş

ReflectionClass sınıfı bir sınıf hakkında bilgi edinilmesini sağlar.

Sınıf Sözdizimi

classReflectionClassimplementsReflector {
publicconstintIS_FINAL;
publicconstintIS_READONLY;
public__construct(object|string$objectOrClass)
publicstaticexport(mixed$bağımsız_değişken, bool$return = false): string
publicgetAttributes(?string$name = null, int$flags = 0): array
publicgetConstant(string$isim): mixed
publicgetConstants(?int$filter = null): array
publicgetMethods(?int$süzgeç = null): array
publicgetModifiers(): int
publicgetName(): string
publicgetProperties(?int$süzgeç = null): array
publicgetStaticPropertyValue(string$isim, mixed&$öntanımlı = ?): mixed
publicgetTraits(): array
publichasConstant(string$isim): bool
publichasMethod(string$isim): bool
publichasProperty(string$isim): bool
publicinNamespace(): bool
publicisAbstract(): bool
publicisAnonymous(): bool
publicisCloneable(): bool
publicisEnum(): bool
publicisFinal(): bool
publicisInstance(string$nesne): bool
publicisInterface(): bool
publicisInternal(): bool
publicisIterable(): bool
publicisReadOnly(): bool
publicisTrait(): bool
publicnewInstance(mixed$bağımsız_değişkenler): object
publicnewInstanceArgs(array$bağımsız_değişkenler = []): ?object
}

Özellikler

name

Sınıfın ismi. Salt-okunur olup, yazılmaya çalışılırsa ReflectionException istisnası oluşur.

Öntanımlı Sabitler

ReflectionClass Değiştiricileri

ReflectionClass::IS_IMPLICIT_ABSTRACT

Bazı soyut yöntemler içerdiğinden sınıfın soyut olduğunu belirtir.

ReflectionClass::IS_EXPLICIT_ABSTRACT

Sınıfın tanımından dolayı soyut olduğunu belirtir.

ReflectionClass::IS_FINAL

Sınıfın bir final sınıf olduğunu belirtir.

ReflectionClass::IS_READONLY

Sınıfın salt okunur olduğunu belirtir.

Sürüm Bilgisi

Sürüm: Açıklama
8.0.0ReflectionClass::export() kaldırıldı.

İçindekiler

To Top