Completed
Push — master ( f44a20...c4a5f6 )
by Kiel
16:22
created
Entity/Tenant.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,6 +130,8 @@  discard block
 block discarded – undo
130 130
 
131 131
 	/**
132 132
 	 * Constructor
133
+	 * @param string $code
134
+	 * @param string $tenant
133 135
 	 */
134 136
 	public function __construct( $code = null, $tenant = null, $licensed_until = null ) {
135 137
 		$this->users          = new ArrayCollection();
@@ -167,7 +169,7 @@  discard block
 block discarded – undo
167 169
 
168 170
 	/**
169 171
 	 * Get users
170
-	 * @return ArrayCollection|User[]
172
+	 * @return ArrayCollection
171 173
 	 */
172 174
 	public function getUsers() {
173 175
 		return $this->users;
Please login to merge, or discard this patch.
Entity/User.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -607,7 +607,7 @@
 block discarded – undo
607 607
 
608 608
 	/**
609 609
 	 * Get tenants
610
-	 * @return Tenant[]|ArrayCollection
610
+	 * @return ArrayCollection
611 611
 	 */
612 612
 	public function getTenants() {
613 613
 		return $this->tenants;
Please login to merge, or discard this patch.
EventListener/TenantManager.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,12 +85,18 @@  discard block
 block discarded – undo
85 85
 		}
86 86
 	}
87 87
 
88
+	/**
89
+	 * @return Tenant
90
+	 */
88 91
 	protected function getDefaultTenant() {
89 92
 		return $this->tenant_repository->findOneBy(array(), array(
90 93
 			'priority' => 'ASC'
91 94
 		));
92 95
 	}
93 96
 
97
+	/**
98
+	 * @return Tenant
99
+	 */
94 100
 	protected function getRequestTenant(Request $request) {
95 101
 		$session   = $request->getSession();
96 102
 		$tenant_id = $request->get('_tenant');
@@ -140,7 +146,7 @@  discard block
 block discarded – undo
140 146
 
141 147
 	/**
142 148
 	 * Sets tenant
143
-	 * @param mixed $tenant
149
+	 * @param Tenant $tenant
144 150
 	 * @return $this
145 151
 	 */
146 152
 	public function setTenant(Tenant $tenant) {
Please login to merge, or discard this patch.