Skip to content

Instantly share code, notes, and snippets.

@jerrylee
Created February 18, 2015 21:22
Show Gist options
  • Save jerrylee/67e467d744f0c66ea5de to your computer and use it in GitHub Desktop.
Save jerrylee/67e467d744f0c66ea5de to your computer and use it in GitHub Desktop.
Object Errors
class AttorneySchema {
public $businessName = '';
public $phone = '';
public $street = '';
public $city = '';
public $state = '';
public $logo = '';
public $url = '';
public $map = '';
public function setupAttorney($businessName, $phone, $street, $city, $state, $logo, $url, $map) {
$this->businessName = $businessName;
$this->phone = $phone;
$this->steet = $street;
$this->city = $city;
$this->state = $state;
$this->logo = $logo;
$this->url = $url;
$this->map = $map;
}
}
$attorneySchema = new AttorneySchema();
$attorneySchema->setupAttorney('Rob Levine and Associates','(888) 533-7507', '544 Douglas Avenue', 'Providence', 'RI','http://roblevine.com/wp-content/uploads/2014/01/blog-banner.png','http://roblevine.com', 'www.map.com' );
printf('<br /> Name: %s %s', $attorneySchema->businessName);
printf('<br /> Phone: %s %s', $attorneySchema->phone);
printf('<br /> Street: %s %s', $attorneySchema->street);
printf('<br /> City: %s %s', $attorneySchema->city);
printf('<br /> State: %s %s', $attorneySchema->state);
printf('<br /> Logo: %s %s', $attorneySchema->logo);
printf('<br /> URL: %s %s', $attorneySchema->url);
printf('<br /> Map: %s %s', $attorneySchema->map);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment