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

Breadcrumb

  1. Drupal Core 11.1.x

Attribute.php

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

Namespace

SlevomatCodingStandard\Helpers

File

vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/Attribute.php

View source
<?php

declare (strict_types=1);
namespace SlevomatCodingStandard\Helpers;


/**
 * @internal
 */
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;
    }

}

Classes

Title Deprecated Summary
Attribute @internal

API Navigation

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