\BEAR_Aspect_JoinPoint

ジョインポイント

アドバイスが織り込まれるターゲットクラスのリフレクションを用いて 情報を取得したりメソッドを実行したりできます。

Summary

Methods
Properties
Constants
__construct()
onInject()
setConfig()
getConfig()
setService()
proceed()
getArgument()
getObject()
getMethodReflection()
getClassReflection()
No public properties found
No constants found
_exception()
$_config
N/A
No private methods found
No private properties found
N/A

Properties

$_config

$_config : array

Class config

Type

array

Methods

__construct()

__construct(array  $config) 

Universal constructor

設定を_configプロパティに代入します。

Parameters

array $config

ユーザー設定値

onInject()

onInject() : void

Inject

設定にしたがってサービスをインジェクトします。

setConfig()

setConfig(mixed  $config, mixed  $values = null) : self

Set config

Parameters

mixed $config

(string) 設定キー | (array) 設定配列

mixed $values

(string) $configの時の設定値

Returns

self

getConfig()

getConfig(string  $key = null) : mixed

Get config

Parameters

string $key

設定キー、指定なければ全ての設定を取得

Returns

mixed

setService()

setService(string  $name, mixed  $service) : void

Set service

Parameters

string $name

サービスキー

mixed $service

サービス

proceed()

proceed(array  $values) : mixed

折り込み元のオリジナルメソッドを実行

アドバイス織り込み対象元のメソッドを実行します。

Parameters

array $values

引数

Returns

mixed

getArgument()

getArgument() : array

引数の取得

Returns

array

getObject()

getObject() : \stdClass

joinpointの取得

jointpointを取得します。

Returns

\stdClass

getMethodReflection()

getMethodReflection() : \ReflectionMethod

joinpointのメソッドリフレクションを返す

Returns

\ReflectionMethod

getClassReflection()

getClassReflection() : \ReflectionClass

joinpointのクラスリフレクションを返す

Returns

\ReflectionClass

_exception()

_exception(string  $msg, array  $config = array()) : \BEAR_Exception

例外の作成

Parameters

string $msg

例外メッセージ

array $config

例外config

Returns

\BEAR_Exception