SchemaFieldLoader
in package
MongoDB SchemaのFieldに設定されたAttributeを読み込むクラス
Table of Contents
Properties
- $attributeFieldSchema : ReflectionAttribute<string|int, SchemaFieldMarkerInterface>|null
- $attributeNest : ReflectionAttribute<string|int, Nest>|null
- $reflectionProperty : ReflectionProperty
Methods
- __construct() : mixed
- fetchAttribute() : ReflectionAttribute<string|int, object>|null
- 属性を取得します(1件)
- fetchAttributes() : array<string|int, ReflectionAttribute<string|int, object>>
- 属性を取得します(n件)
Properties
$attributeFieldSchema
public
ReflectionAttribute<string|int, SchemaFieldMarkerInterface>|null
$attributeFieldSchema
$attributeNest
public
ReflectionAttribute<string|int, Nest>|null
$attributeNest
$reflectionProperty
public
ReflectionProperty
$reflectionProperty
Methods
__construct()
public
__construct(ReflectionProperty $reflectionProperty) : mixed
Parameters
- $reflectionProperty : ReflectionProperty
fetchAttribute()
属性を取得します(1件)
public
fetchAttribute(string $attributeName) : ReflectionAttribute<string|int, object>|null
Parameters
- $attributeName : string
-
取得する属性名を渡します
Return values
ReflectionAttribute<string|int, object>|null —存在する場合は属性を、存在しない場合はnullを返します
fetchAttributes()
属性を取得します(n件)
public
fetchAttributes(string $attributeName) : array<string|int, ReflectionAttribute<string|int, object>>
Parameters
- $attributeName : string
-
取得する属性名を渡します
Return values
array<string|int, ReflectionAttribute<string|int, object>> —存在する場合は属性を保持した配列を、存在しない場合は空配列を返します