1: <?php
2:
3: /**
4: * This file is part of the Nette Framework (https://nette.org)
5: * Copyright (c) 2004 David Grudl (http://davidgrudl.com)
6: */
7:
8: namespace Nette\DI;
9:
10: use Nette;
11:
12:
13: /**
14: * Assignment or calling statement.
15: *
16: * @author David Grudl
17: *
18: * @method Statement setEntity(string|array|Nette\DI\ServiceDefinition|NULL)
19: * @method string getEntity()
20: */
21: class Statement extends Nette\Object
22: {
23: /** @var string|array|ServiceDefinition|NULL class|method|$property */
24: private $entity;
25:
26: /** @var array */
27: public $arguments;
28:
29:
30: public function __construct($entity, array $arguments = array())
31: {
32: $this->entity = $entity;
33: $this->arguments = $arguments;
34: }
35:
36: }
37: