PluginProbe
Packeta / 1.5.3
Packeta v1.5.3
2.3.2 2.3.1 trunk 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.3.0 1.3.1 1.3.2 1.4 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 All 56 releases
packeta / src / Packetery / Core / Validator / Address.php

Address.php in Packeta 1.5.3, at src/Packetery/Core/Validator/Address.php

34 lines 514 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Class Address
4 *
5 * @package Packetery\Validator
6 */
7
8 declare( strict_types=1 );
9
10 namespace Packetery\Core\Validator;
11
12 use Packetery\Core\Entity;
13
14 /**
15 * Class Address
16 *
17 * @package Packetery\Validator
18 */
19 class Address {
20
21 /**
22 * Validates data needed to instantiate.
23 *
24 * @param Entity\Address $address Address entity.
25 *
26 * @return bool
27 */
28 public function validate( Entity\Address $address ): bool {
29 return ( $address->getStreet() && $address->getCity() && $address->getZip() );
30 }
31
32
33 }
34