Advertisement
Guest User

Untitled

a guest
Sep 19th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.59 KB | None | 0 0
  1. metodaKojaPoziva {
  2.   methodOne($argumentKojiTreba)
  3.   methodTwo($argumentKojiTreba)
  4. }
  5.  
  6. methodOne($argumentKojiTreba) {
  7.   if('contactData' != $property || $value == null) {
  8.     return
  9.   }
  10.  
  11.   if (Contact::class == $resourceClass) {
  12.       $this->filterForContacts($queryBuilder, $parameterName, $value);
  13.   }
  14. }
  15.  
  16. methodTwo($argumentKojiTreba) {
  17.   if ('order' != $property || isset($value['contactData']) == null || null == $value['contactData']) {
  18.     return;
  19.   }
  20.  
  21.   if (Contact::class == $resourceClass) {
  22.       $this->sortForContacts($queryBuilder, $value['contactData']);
  23.   }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement