Skip to content

Instantly share code, notes, and snippets.

@renan
Created April 21, 2015 22:01
Show Gist options
  • Save renan/29f37449bbd5f4e6c4f5 to your computer and use it in GitHub Desktop.
Save renan/29f37449bbd5f4e6c4f5 to your computer and use it in GitHub Desktop.
<?php
class Person
{
public function addPhoneNumber(PhoneNumber $phoneNumber)
{
$this->phoneNumbers[] = $phoneNumber;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment