PHP 클래스 Eloquent\Phony\Mock\Builder\MockDefinition

파일 보기 프로젝트 열기: eloquent/phony 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( array $types, array $customMethods, array $customProperties, array $customStaticMethods, array $customStaticProperties, array $customConstants, string | null $className, boolean $isTraitSupported, boolean $isRelaxedKeywordsSupported ) Construct a new mock definition.
className ( ) : string | null Get the class name.
customConstants ( ) : mixed>\array Get the custom constants.
customMethods ( ) : array> Get the custom methods.
customProperties ( ) : mixed>\array Get the custom properties.
customStaticMethods ( ) : array> Get the custom static methods.
customStaticProperties ( ) : mixed>\array Get the custom static properties.
interfaceNames ( ) : array Get the interface names.
isEqualTo ( MockDefinition $definition ) : boolean Check if the supplied definition is equal to this definition.
methods ( ) : MethodDefinitionCollection Get the method definitions.
parentClassName ( ) : string | null Get the parent class name.
signature ( ) : mixed Get the signature.
traitNames ( ) : array Get the trait names.
typeNames ( ) : array Get the type names.
types ( ) : ReflectionClass>\array Get the types.

비공개 메소드들

메소드 설명
buildMethods ( )
inspectTypes ( )

메소드 상세

__construct() 공개 메소드

Construct a new mock definition.
public __construct ( array $types, array $customMethods, array $customProperties, array $customStaticMethods, array $customStaticProperties, array $customConstants, string | null $className, boolean $isTraitSupported, boolean $isRelaxedKeywordsSupported )
$types array
$customMethods array
$customProperties array
$customStaticMethods array
$customStaticProperties array
$customConstants array
$className string | null The class name.
$isTraitSupported boolean True if traits are supported.
$isRelaxedKeywordsSupported boolean True if relaxed keywords are supported.

className() 공개 메소드

Get the class name.
public className ( ) : string | null
리턴 string | null The class name.

customConstants() 공개 메소드

Get the custom constants.
public customConstants ( ) : mixed>\array
리턴 mixed>\array

customMethods() 공개 메소드

Get the custom methods.
public customMethods ( ) : array>
리턴 array>

customProperties() 공개 메소드

Get the custom properties.
public customProperties ( ) : mixed>\array
리턴 mixed>\array

customStaticMethods() 공개 메소드

Get the custom static methods.
public customStaticMethods ( ) : array>
리턴 array>

customStaticProperties() 공개 메소드

Get the custom static properties.
public customStaticProperties ( ) : mixed>\array
리턴 mixed>\array

interfaceNames() 공개 메소드

Get the interface names.
public interfaceNames ( ) : array
리턴 array

isEqualTo() 공개 메소드

Check if the supplied definition is equal to this definition.
public isEqualTo ( MockDefinition $definition ) : boolean
$definition MockDefinition
리턴 boolean True if equal.

methods() 공개 메소드

Calling this method will finalize the mock builder.
public methods ( ) : MethodDefinitionCollection
리턴 Eloquent\Phony\Mock\Builder\Method\MethodDefinitionCollection The method definitions.

parentClassName() 공개 메소드

Get the parent class name.
public parentClassName ( ) : string | null
리턴 string | null The parent class name, or null if the mock will not extend a class.

signature() 공개 메소드

This is an opaque value designed to aid in determining whether two mock definitions are the same.
public signature ( ) : mixed
리턴 mixed The signature.

traitNames() 공개 메소드

Get the trait names.
public traitNames ( ) : array
리턴 array

typeNames() 공개 메소드

Get the type names.
public typeNames ( ) : array
리턴 array

types() 공개 메소드

Get the types.
public types ( ) : ReflectionClass>\array
리턴 ReflectionClass>\array