Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. BoundArgument.php

class BoundArgument

@author Guilhem Niot <guilhem.niot@gmail.com>

Hierarchy

  • class \Symfony\Component\DependencyInjection\Argument\BoundArgument implements \Symfony\Component\DependencyInjection\Argument\ArgumentInterface

Expanded class hierarchy of BoundArgument

7 files declare their use of BoundArgument
BindTrait.php in vendor/symfony/dependency-injection/Loader/Configurator/Traits/BindTrait.php
Definition.php in vendor/symfony/dependency-injection/Definition.php
RegisterServiceSubscribersPass.php in vendor/symfony/dependency-injection/Compiler/RegisterServiceSubscribersPass.php
ResolveBindingsPass.php in vendor/symfony/dependency-injection/Compiler/ResolveBindingsPass.php
SerializerPass.php in vendor/symfony/serializer/DependencyInjection/SerializerPass.php

... See full list

File

vendor/symfony/dependency-injection/Argument/BoundArgument.php, line 17

Namespace

Symfony\Component\DependencyInjection\Argument
View source
final class BoundArgument implements ArgumentInterface {
    public const SERVICE_BINDING = 0;
    public const DEFAULTS_BINDING = 1;
    public const INSTANCEOF_BINDING = 2;
    private static int $sequence = 0;
    private ?int $identifier = null;
    private ?bool $used = null;
    public function __construct(mixed $value, bool $trackUsage = true, int $type = 0, ?string $file = null) {
        if ($trackUsage) {
            $this->identifier = ++self::$sequence;
        }
        else {
            $this->used = true;
        }
    }
    public function getValues() : array {
        return [
            $this->value,
            $this->identifier,
            $this->used,
            $this->type,
            $this->file,
        ];
    }
    public function setValues(array $values) : void {
        if (5 === \count($values)) {
            [
                $this->value,
                $this->identifier,
                $this->used,
                $this->type,
                $this->file,
            ] = $values;
        }
        else {
            [
                $this->value,
                $this->identifier,
                $this->used,
            ] = $values;
        }
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
BoundArgument::$identifier private property
BoundArgument::$sequence private static property
BoundArgument::$used private property
BoundArgument::DEFAULTS_BINDING public constant
BoundArgument::getValues public function Overrides ArgumentInterface::getValues
BoundArgument::INSTANCEOF_BINDING public constant
BoundArgument::SERVICE_BINDING public constant
BoundArgument::setValues public function Overrides ArgumentInterface::setValues
BoundArgument::__construct public function
RSS feed
Powered by Drupal