Created
February 18, 2015 21:22
-
-
Save jerrylee/67e467d744f0c66ea5de to your computer and use it in GitHub Desktop.
Object Errors
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
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