Skip to content

Instantly share code, notes, and snippets.

@young-steveo
Last active June 20, 2018 17:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save young-steveo/f4fe0845fd47a1f3ce0045e65f203149 to your computer and use it in GitHub Desktop.
Save young-steveo/f4fe0845fd47a1f3ce0045e65f203149 to your computer and use it in GitHub Desktop.
Array Oriented Programming Refactored
<?php
final class User extends Requester {
public function search(SearchParams $params) : array {
return $this->request($params->toArray())->toArray();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment