Created
June 8, 2016 20:47
-
-
Save Mulkave/7b20422826a8885a1a2b389751454960 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 | |
namespace Directory\Data\Repositories; | |
class CitizenRepository extends AbstractRepository | |
{ | |
private $citizen; | |
public function __construct(Citizen $citizen) | |
{ | |
$this->citizen = $citizen; | |
} | |
public function register($name, $email, $ssn, $occupation, $address) | |
{ | |
return $this->citizen->register($name, $email, $ssn, $occupation, $address); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment