Further modules included.
[yaffs-website] / web / modules / contrib / libraries / src / ExternalLibrary / Utility / IdAccessorTrait.php
1 <?php
2
3 namespace Drupal\libraries\ExternalLibrary\Utility;
4
5 /**
6  * Provides a trait for classes that have a string identifier.
7  */
8 trait IdAccessorTrait {
9
10   /**
11    * The ID.
12    *
13    * @var string
14    */
15   protected $id;
16
17   /**
18    * Returns the ID.
19    *
20    * @return string
21    *   The ID.
22    *
23    * @see \Drupal\libraries\ExternalLibrary\LibraryInterface::getId()
24    * @see \Drupal\libraries\ExternalLibrary\LibraryType\LibraryTypeInterface::getId()
25    */
26   public function getId() {
27     return $this->id;
28   }
29
30 }