comparison core/lib/Drupal/Component/Annotation/AnnotationBase.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
1 <?php
2
3 namespace Drupal\Component\Annotation;
4
5 /**
6 * Provides a base class for classed annotations.
7 */
8 abstract class AnnotationBase implements AnnotationInterface {
9
10 /**
11 * The annotated class ID.
12 *
13 * @var string
14 */
15 public $id;
16
17 /**
18 * The class used for this annotated class.
19 *
20 * @var string
21 */
22 protected $class;
23
24 /**
25 * The provider of the annotated class.
26 *
27 * @var string
28 */
29 protected $provider;
30
31 /**
32 * {@inheritdoc}
33 */
34 public function getProvider() {
35 return $this->provider;
36 }
37
38 /**
39 * {@inheritdoc}
40 */
41 public function setProvider($provider) {
42 $this->provider = $provider;
43 }
44
45 /**
46 * {@inheritdoc}
47 */
48 public function getId() {
49 return $this->id;
50 }
51
52 /**
53 * {@inheritdoc}
54 */
55 public function getClass() {
56 return $this->class;
57 }
58
59 /**
60 * {@inheritdoc}
61 */
62 public function setClass($class) {
63 $this->class = $class;
64 }
65
66 }