Skip to content

Commit 1e0f18e

Browse files
HP-1631: added annotation for Factory::get() method
1 parent b34a233 commit 1e0f18e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/tools/Factory.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,13 @@ public function getCustomer($data): CustomerInterface
203203
return $this->get('customer', $data);
204204
}
205205

206+
/**
207+
* @deprecated In the future the function will be private.
208+
* Please use a specific method instead (e.g., getSale)
209+
* @param string $entity
210+
* @param $data
211+
* @return mixed
212+
*/
206213
public function get(string $entity, $data)
207214
{
208215
if (is_scalar($data)) {

0 commit comments

Comments
 (0)