This repository was archived by the owner on May 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathZoneEntityInterface.php
More file actions
80 lines (70 loc) · 1.65 KB
/
ZoneEntityInterface.php
File metadata and controls
80 lines (70 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
namespace CommerceGuys\Zone\Model;
use Doctrine\Common\Collections\Collection;
interface ZoneEntityInterface extends ZoneInterface
{
/**
* Sets the zone id.
*
* @param string $id The zone id.
*
* @return self
*/
public function setId($id);
/**
* Sets the zone name.
*
* @param string $name The zone name.
*
* @return self
*/
public function setName($name);
/**
* Sets the zone scope.
*
* @param string $scope The zone scope.
*
* @return self
*/
public function setScope($scope);
/**
* Sets the zone priority.
*
* @param int $priority The zone priority.
*
* @return self
*/
public function setPriority($priority);
/**
* Sets the zone members.
*
* @param ZoneMemberEntityInterface[] $members The zone members.
*
* @return self
*/
public function setMembers(Collection $members);
/**
* Adds a zone member.
*
* @param ZoneMemberEntityInterface $member The zone member.
*
* @return self
*/
public function addMember(ZoneMemberEntityInterface $member);
/**
* Removes a zone member.
*
* @param ZoneMemberEntityInterface $member The zone member.
*
* @return self
*/
public function removeMember(ZoneMemberEntityInterface $member);
/**
* Checks whether the zone has a zone member.
*
* @param ZoneMemberEntityInterface $member The zone member.
*
* @return bool True if the zone member was found, false otherwise.
*/
public function hasMember(ZoneMemberEntityInterface $member);
}