Created
November 17, 2016 15:02
-
-
Save philipobenito/8d83d826f9156cc67646efe2fddc62b6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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