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

Breadcrumb

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

class Attribute

Same name in this branch
  1. 11.1.x vendor/phpstan/phpdoc-parser/src/Ast/Attribute.php \PHPStan\PhpDocParser\Ast\Attribute
  2. 11.1.x vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Attribute.php \Doctrine\Common\Annotations\Annotation\Attribute
  3. 11.1.x vendor/nikic/php-parser/lib/PhpParser/Node/Attribute.php \PhpParser\Node\Attribute
  4. 11.1.x vendor/mck89/peast/lib/Peast/Selector/Node/Part/Attribute.php \Peast\Selector\Node\Part\Attribute
  5. 11.1.x core/lib/Drupal/Core/Template/Attribute.php \Drupal\Core\Template\Attribute

@internal

Hierarchy

  • class \SlevomatCodingStandard\Helpers\Attribute

Expanded class hierarchy of Attribute

16 string references to 'Attribute'
Attribute::getType in vendor/nikic/php-parser/lib/PhpParser/Node/Attribute.php
Gets the type of the node.
AttributeClassLoader::supports in vendor/symfony/routing/Loader/AttributeClassLoader.php
AttributeDirectoryLoader::supports in vendor/symfony/routing/Loader/AttributeDirectoryLoader.php
AttributeFileLoader::supports in vendor/symfony/routing/Loader/AttributeFileLoader.php
claro_preprocess_input in core/themes/claro/claro.theme
Implements template_preprocess_HOOK() for input.

... See full list

File

vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/Attribute.php, line 8

Namespace

SlevomatCodingStandard\Helpers
View source
class Attribute {
    
    /** @var int */
    private $attributePointer;
    
    /** @var string */
    private $name;
    
    /** @var int */
    private $startPointer;
    
    /** @var int */
    private $endPointer;
    
    /** @var string|null */
    private $content;
    public function __construct(int $attributePointer, string $name, int $startPointer, int $endPointer, ?string $content = null) {
        $this->attributePointer = $attributePointer;
        $this->name = $name;
        $this->startPointer = $startPointer;
        $this->endPointer = $endPointer;
        $this->content = $content;
    }
    public function getAttributePointer() : int {
        return $this->attributePointer;
    }
    public function getName() : string {
        return $this->name;
    }
    public function getStartPointer() : int {
        return $this->startPointer;
    }
    public function getEndPointer() : int {
        return $this->endPointer;
    }
    public function getContent() : ?string {
        return $this->content;
    }

}

Members

Title Sort descending Modifiers Object type Summary
Attribute::$attributePointer private property @var int
Attribute::$content private property @var string|null
Attribute::$endPointer private property @var int
Attribute::$name private property @var string
Attribute::$startPointer private property @var int
Attribute::getAttributePointer public function
Attribute::getContent public function
Attribute::getEndPointer public function
Attribute::getName public function
Attribute::getStartPointer public function
Attribute::__construct public function

API Navigation

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