Skip to content

Instantly share code, notes, and snippets.

@teresko
Created April 25, 2015 20:48
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 teresko/c229547f901093c8321b to your computer and use it in GitHub Desktop.
Save teresko/c229547f901093c8321b to your computer and use it in GitHub Desktop.
example
<?php
return [
'href' => $header->getProtocol() . '://' . $header->getHostname() . $header->getPath() . '/' . $user->getId(),
'id' => $user->getId(),
'name' => $user->getName(),
'role' => $user->getRole(),
'score' => 0,
'clients' => 0,
'seen' => $user->getTimestamp(),
] + $avatar + $details;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment