Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[yaffs-website] / web / core / lib / Drupal / Component / Plugin / Definition / PluginDefinition.php
1 <?php
2
3 namespace Drupal\Component\Plugin\Definition;
4
5 /**
6  * Provides object-based plugin definitions.
7  */
8 class PluginDefinition implements PluginDefinitionInterface {
9
10   /**
11    * The plugin ID.
12    *
13    * @var string
14    */
15   protected $id;
16
17   /**
18    * A fully qualified class name.
19    *
20    * @var string
21    */
22   protected $class;
23
24   /**
25    * The plugin provider.
26    *
27    * @var string
28    */
29   protected $provider;
30
31   /**
32    * {@inheritdoc}
33    */
34   public function id() {
35     return $this->id;
36   }
37
38   /**
39    * {@inheritdoc}
40    */
41   public function setClass($class) {
42     $this->class = $class;
43     return $this;
44   }
45
46   /**
47    * {@inheritdoc}
48    */
49   public function getClass() {
50     return $this->class;
51   }
52
53   /**
54    * {@inheritdoc}
55    */
56   public function getProvider() {
57     return $this->provider;
58   }
59
60 }