for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* YAWIK
*
* @filesource
* @license MIT
* @copyright 2013 - 2016 Cross Solution <http://cross-solution.de>
*/
/** */
namespace Orders\Form;
use Core\Entity\Hydrator\EntityHydrator;
use Zend\Form\Fieldset;
* ${CARET}
* @author Mathias Gelhausen <[email protected]>
* @todo write test
class InvoiceAddressFieldset extends Fieldset
{
public function init()
$this->setName('invoiceAddress');
$this->add([
'type' => 'text',
'name' => 'title',
'options' => [
'label' => 'Title',
'description' => /*@translate*/ 'Enter the form of address you would appreciate',
],
]);
'name' => 'name',
'label' => /*@translate*/ 'Full name',
'description' => /*@translate*/ 'Enter your full name (First, middle and last name)',
'name' => 'company',
'label' => /*@translate*/ 'Company',
'description' => /*@translate*/ 'Enter the name of the company',
'name' => 'street',
'label' => /*@translate*/ 'Street',
'name' => 'zipCode',
'label' => 'Postal code'
'name' => 'city',
'label' => /*@translate*/ 'City',
'name' => 'region',
'label' => /*@translate*/ 'Region',
'name' => 'country',
'label' => /*@translate*/ 'Country',
'name' => 'vatId',
'label' => /*@translate*/ 'Value added tax ID',
'name' => 'email',
'label' => /*@translate*/ 'Email address',
}
public function getHydrator()
if (!$this->hydrator) {
$this->setHydrator(new EntityHydrator());
return parent::getHydrator();