ReflectionClass Sınıfı

(PHP 5, PHP 7)

Giriş

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

Sınıf Sözdizimi

ReflectionClass implements Reflector {
/* Sabitler */
const integer IS_IMPLICIT_ABSTRACT = 16 ;
const integer IS_EXPLICIT_ABSTRACT = 32 ;
const integer IS_FINAL = 64 ;
/* Özellikler */
public $name ;
/* Yöntemler */
__construct ( string $değiştirge )
public static export ( mixed $değiştirge , bool $ihracet = false ) : string
public getConstant ( string $isim ) : mixed
public getConstants ( int|null $filter = null ) : array
public getConstructor ( ) : object
public getDefaultProperties ( ) : array
public getDocComment ( ) : string
public getEndLine ( ) : int
public getExtensionName ( ) : string
public getFileName ( ) : string
public getInterfaceNames ( ) : array
public getInterfaces ( ) : array
public getMethod ( string $isim ) : object
public getMethods ( string $süzgeç = ? ) : array
public getModifiers ( ) : int
public getName ( ) : string
public getNamespaceName ( ) : string
public getParentClass ( ) : object
public getProperties ( int $süzgeç = ? ) : array
public getProperty ( string $isim ) : ReflectionProperty
public getReflectionConstant ( string $name ) : ReflectionClassConstant|false
public getReflectionConstants ( int|null $filter = null ) : array
public getShortName ( ) : string
public getStartLine ( ) : int
public getStaticProperties ( ) : array
public getStaticPropertyValue ( string $isim , string $öntanımlı = ? ) : mixed
public getTraitAliases ( ) : array
public getTraitNames ( ) : array
public getTraits ( ) : array
public hasConstant ( string $isim ) : bool
public hasMethod ( string $isim ) : bool
public hasProperty ( string $isim ) : bool
public implementsInterface ( string $arayüz ) : bool
public inNamespace ( ) : bool
public isAbstract ( ) : bool
public isAnonymous ( ) : bool
public isCloneable ( ) : bool
public isFinal ( ) : bool
public isInstance ( string $nesne ) : bool
public isInstantiable ( ) : bool
public isInterface ( ) : bool
public isInternal ( ) : bool
public isIterable ( ) : bool
public isIterateable ( ) : bool
public isSubclassOf ( string $sınıf ) : bool
public isTrait ( ) : bool
public isUserDefined ( ) : bool
public newInstance ( mixed $değiştirgeler , mixed $... = ? ) : object
public newInstanceArgs ( array $değiştirgeler = ? ) : object
public newInstanceWithoutConstructor ( ) : object
public setStaticPropertyValue ( string $isim , string $değer ) : void
public __toString ( ) : string
}

Ö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.

İçindekiler