
| Current Path : /var/www/html/rocksensor1/web/core/lib/Drupal/Component/Plugin/Attribute/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/rocksensor1/web/core/lib/Drupal/Component/Plugin/Attribute/AttributeInterface.php |
<?php
namespace Drupal\Component\Plugin\Attribute;
/**
* Defines a common interface for classed attributes.
*/
interface AttributeInterface {
/**
* Gets the value of an attribute.
*/
public function get(): mixed;
/**
* Gets the name of the provider of the attribute class.
*
* @return string|null
*/
public function getProvider(): ?string;
/**
* Sets the name of the provider of the attribute class.
*
* @param string $provider
* The provider of the annotated class.
*/
public function setProvider(string $provider): void;
/**
* Gets the unique ID for this attribute class.
*
* @return string
*/
public function getId(): string;
/**
* Gets the class of the attribute class.
*
* @return class-string|null
*/
public function getClass(): ?string;
/**
* Sets the class of the attributed class.
*
* @param class-string $class
* The class of the attributed class.
*/
public function setClass(string $class): void;
}