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

Breadcrumb

  1. Drupal Core 11.1.x

Parameter.php

Same filename in this branch
  1. 11.1.x vendor/symfony/dependency-injection/Parameter.php

Namespace

SebastianBergmann\Type

File

vendor/sebastian/type/src/Parameter.php

View source
<?php

declare (strict_types=1);

/*
 * This file is part of sebastian/type.
 *
 * (c) Sebastian Bergmann <sebastian@phpunit.de>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace SebastianBergmann\Type;

final class Parameter {
    
    /**
     * @psalm-var non-empty-string
     */
    private string $name;
    private Type $type;
    
    /**
     * @psalm-param non-empty-string $name
     */
    public function __construct(string $name, Type $type) {
        $this->name = $name;
        $this->type = $type;
    }
    public function name() : string {
        return $this->name;
    }
    public function type() : Type {
        return $this->type;
    }

}

Classes

Title Deprecated Summary
Parameter

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal