Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3namespace Drupal\crm;
4
5use Drupal\Core\Entity\ContentEntityInterface;
6use Drupal\user\UserInterface;
7
8/**
9 * Provides an interface defining a relation entity type.
10 */
11interface CrmUserContactInterface extends ContentEntityInterface {
12
13  /**
14   * Returns the relation user entity.
15   *
16   * @return \Drupal\user\UserInterface
17   *   The relation user entity.
18   */
19  public function getUser();
20
21  /**
22   * Sets the relation user entity.
23   *
24   * @param \Drupal\user\UserInterface $account
25   *   The relation user entity.
26   *
27   * @return $this
28   */
29  public function setUser(UserInterface $account);
30
31  /**
32   * Returns the relation user ID.
33   *
34   * @return int|null
35   *   The relation user ID, or NULL in case the user ID field has not been set.
36   */
37  public function getUserId();
38
39  /**
40   * Sets the relation user ID.
41   *
42   * @param int $uid
43   *   The relation user id.
44   *
45   * @return $this
46   */
47  public function setUserId($uid);
48
49  /**
50   * Returns the relation person entity.
51   *
52   * @return \Drupal\crm\CrmContactInterface
53   *   The relation person entity.
54   */
55  public function getContact();
56
57  /**
58   * Sets the relation person entity.
59   *
60   * @param \Drupal\crm\CrmContactInterface $person
61   *   The relation person entity.
62   *
63   * @return $this
64   */
65  public function setContact(CrmContactInterface $person);
66
67  /**
68   * Returns the relation person ID.
69   *
70   * @return int|null
71   *   The relation person ID, or NULL in case the person ID field has not been
72   *   set.
73   */
74  public function getContactId();
75
76  /**
77   * Sets the relation person ID.
78   *
79   * @param int $contact_id
80   *   The relation person id.
81   *
82   * @return $this
83   */
84  public function setContactId($contact_id);
85
86}