| 1 | <?php |
||
| 12 | class Reference extends Base implements CanRefer |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $perryReferredType = null; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param array|null|object|string $inputData |
||
| 21 | * @param string $referTo |
||
| 22 | */ |
||
| 23 | public function __construct($inputData, $referTo = null) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * call method, allows references to be called |
||
| 31 | * |
||
| 32 | * @param array $args |
||
| 33 | * @return Base |
||
| 34 | * @throws \Exception |
||
| 35 | */ |
||
| 36 | public function call($args = array()) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * magic method to allow calling the object as if it was a function |
||
| 43 | * |
||
| 44 | * @param array $args |
||
| 45 | * @return Base |
||
| 46 | */ |
||
| 47 | public function __invoke($args = array()) |
||
| 51 | } |
||
| 52 |