@@ 65-76 (lines=12) @@ | ||
62 | * @return bool |
|
63 | * @throws LPTrackerSDKException |
|
64 | */ |
|
65 | public function validate() |
|
66 | { |
|
67 | if ($this->id === null) { |
|
68 | throw new LPTrackerSDKException('Employee ID is required'); |
|
69 | } |
|
70 | ||
71 | if (empty($this->name)) { |
|
72 | throw new LPTrackerSDKException('Employee name is required'); |
|
73 | } |
|
74 | ||
75 | return true; |
|
76 | } |
|
77 | ||
78 | /** |
|
79 | * @return array |
@@ 49-60 (lines=12) @@ | ||
46 | * @return bool |
|
47 | * @throws LPTrackerSDKException |
|
48 | */ |
|
49 | public function validate() |
|
50 | { |
|
51 | if (empty($this->id)) { |
|
52 | throw new LPTrackerSDKException('Project ID is required'); |
|
53 | } |
|
54 | ||
55 | if (empty($this->name)) { |
|
56 | throw new LPTrackerSDKException('Project name is required'); |
|
57 | } |
|
58 | ||
59 | return true; |
|
60 | } |
|
61 | ||
62 | /** |
|
63 | * @return array |
@@ 57-68 (lines=12) @@ | ||
54 | * @return bool |
|
55 | * @throws LPTrackerSDKException |
|
56 | */ |
|
57 | public function validate() |
|
58 | { |
|
59 | if (empty($this->id)) { |
|
60 | throw new LPTrackerSDKException('Stage ID is required'); |
|
61 | } |
|
62 | ||
63 | if (empty($this->name)) { |
|
64 | throw new LPTrackerSDKException('Stage name is required'); |
|
65 | } |
|
66 | ||
67 | return true; |
|
68 | } |
|
69 | ||
70 | /** |
|
71 | * @return array |