Chris@14: Chris@14: * Chris@14: * For the full copyright and license information, please view the LICENSE Chris@14: * file that was distributed with this source code. Chris@14: */ Chris@14: Chris@14: namespace Symfony\Component\DependencyInjection\Argument; Chris@14: Chris@14: /** Chris@14: * @author Guilhem Niot Chris@14: */ Chris@14: final class BoundArgument implements ArgumentInterface Chris@14: { Chris@14: private static $sequence = 0; Chris@14: Chris@14: private $value; Chris@14: private $identifier; Chris@14: private $used; Chris@14: Chris@14: public function __construct($value) Chris@14: { Chris@14: $this->value = $value; Chris@14: $this->identifier = ++self::$sequence; Chris@14: } Chris@14: Chris@14: /** Chris@14: * {@inheritdoc} Chris@14: */ Chris@14: public function getValues() Chris@14: { Chris@17: return [$this->value, $this->identifier, $this->used]; Chris@14: } Chris@14: Chris@14: /** Chris@14: * {@inheritdoc} Chris@14: */ Chris@14: public function setValues(array $values) Chris@14: { Chris@14: list($this->value, $this->identifier, $this->used) = $values; Chris@14: } Chris@14: }