Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
CrmCaseEncounter
n/a
0 / 0
n/a
0 / 0
0
n/a
0 / 0
1<?php
2
3namespace Drupal\crm_case\Entity;
4
5use Drupal\Core\Config\Entity\ConfigEntityBase;
6use Drupal\crm_case\CrmCaseEncounterInterface;
7
8/**
9 * Defines the encounter entity type.
10 *
11 * @ConfigEntityType(
12 *   id = "crm_case_encounter",
13 *   label = @Translation("Encounter"),
14 *   label_collection = @Translation("Encounters"),
15 *   label_singular = @Translation("encounter"),
16 *   label_plural = @Translation("encounters"),
17 *   label_count = @PluralTranslation(
18 *     singular = "@count encounter",
19 *     plural = "@count encounters",
20 *   ),
21 *   handlers = {
22 *     "list_builder" = "Drupal\crm_case\CrmCaseEncounterListBuilder",
23 *     "form" = {
24 *       "add" = "Drupal\crm_case\Form\CrmCaseEncounterForm",
25 *       "edit" = "Drupal\crm_case\Form\CrmCaseEncounterForm",
26 *       "delete" = "Drupal\Core\Entity\EntityDeleteForm"
27 *     }
28 *   },
29 *   config_prefix = "crm_case_encounter",
30 *   admin_permission = "administer crm_case_encounter",
31 *   links = {
32 *     "collection" = "/admin/structure/crm-case-encounter",
33 *     "add-form" = "/admin/structure/crm-case-encounter/add",
34 *     "edit-form" = "/admin/structure/crm-case-encounter/{crm_case_encounter}",
35 *     "delete-form" = "/admin/structure/crm-case-encounter/{crm_case_encounter}/delete"
36 *   },
37 *   entity_keys = {
38 *     "id" = "id",
39 *     "label" = "label",
40 *     "uuid" = "uuid"
41 *   },
42 *   config_export = {
43 *     "id",
44 *     "label",
45 *     "description",
46 *     "status",
47 *     "weight",
48 *     "default"
49 *   }
50 * )
51 */
52class CrmCaseEncounter extends ConfigEntityBase implements CrmCaseEncounterInterface {
53
54  /**
55   * The encounter ID.
56   *
57   * @var string
58   */
59  protected $id;
60
61  /**
62   * The encounter label.
63   *
64   * @var string
65   */
66  protected $label;
67
68  /**
69   * The encounter status.
70   *
71   * @var bool
72   */
73  protected $status;
74
75  /**
76   * The crm_case_encounter description.
77   *
78   * @var string
79   */
80  protected $description;
81
82  /**
83   * The crm_case_encounter sort weight.
84   *
85   * @var int
86   */
87  protected $weight;
88
89  /**
90   * The crm_case_encounter default.
91   *
92   * @var bool
93   */
94  protected $default;
95
96}