private function __setDefaultValues(Organization $organization) { $this->setDefaults(array('name' => $organization->getName(), 'taxId' => $organization->getTaxId(), 'registraionNumber' => $organization->getRegistraionNumber(), 'phone' => $organization->getPhone(), 'fax' => $organization->getFax(), 'email' => $organization->getEmail(), 'country' => $organization->getCountry(), 'province' => $organization->getProvince(), 'city' => $organization->getCity(), 'zipCode' => $organization->getZipCode(), 'street1' => $organization->getStreet1(), 'street2' => $organization->getStreet2(), 'note' => $organization->getNote())); }
</li> </ul> </nav> </div> </header> <!-- [SCHEMA] HTML+RDF --> <div class="page-info" role="contentinfo"> <!-- [SCHEMA.HTML+RDF] CREATOR --> <div property="creator" typeof="Organization"> <?php $name = $dev->getName(); ?> <meta property="name" content="<?php echo $name; ?> "/> <meta property="legalName" content="<?php echo $dev->getName(true); ?> "/> <a href="<?php echo $dev->getLink(); ?> " property="url" content="<?php echo $dev->getLink(); ?>
/** * Tests Organization->getName() */ public function testGetName() { $this->assertEquals('NAME', $this->Organization->getName()); }
/** * {@inheritdoc} */ public function jsonSerialize() { $parent = $this->organization->getParent(); return ['id' => $this->organization->getId(), 'name' => $this->organization->getName(), 'parent' => is_null($parent) ? null : $parent->getName()]; }