Skip to content

Instantly share code, notes, and snippets.

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 philipobenito/8d83d826f9156cc67646efe2fddc62b6 to your computer and use it in GitHub Desktop.
Save philipobenito/8d83d826f9156cc67646efe2fddc62b6 to your computer and use it in GitHub Desktop.
<?php
class Foo
{
protected $bar;
public function doSomething($bar, $id, $name, $email)
{
$this->bar = $bar;
// .. possibly manipulate $id, $name and $email
// assume we want to edit a row in a database and
// then return an array of data containing that row
return $this->bar->editAndReturnUser($id, $name, $email);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment