File manager - Edit - /home/premiey/www/wp-content/plugins/ameliabooking/src/Domain/Factory/Schedule/PeriodLocationFactory.php
Back
<?php namespace AmeliaBooking\Domain\Factory\Schedule; use AmeliaBooking\Domain\Entity\Schedule\PeriodLocation; use AmeliaBooking\Domain\ValueObjects\Number\Integer\Id; class PeriodLocationFactory { /** * @param array $data * * @return PeriodLocation */ public static function create($data) { $periodLocation = new PeriodLocation( new Id($data['locationId']) ); if (isset($data['id'])) { $periodLocation->setId(new Id($data['id'])); } return $periodLocation; } }
| ver. 1.4 |
Github
|
.
| PHP 5.4.45 | Generation time: 0 |
proxy
|
phpinfo
|
Settings