123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227 |
- <?php
- /**
- *
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- declare(strict_types=1);
- namespace Magento\TestModuleExtensionAttributes\Model\Data;
- use Magento\Framework\Api\AbstractExtensibleObject;
- use Magento\TestModuleExtensionAttributes\Api\Data\FakeAddressInterface;
- class FakeAddress extends AbstractExtensibleObject implements FakeAddressInterface
- {
- /**
- * Get ID
- *
- * @return int|null
- */
- public function getId()
- {
- return $this->_get(self::ID);
- }
- /**
- * Get customer ID
- *
- * @return int|null
- */
- public function getCustomerId()
- {
- return $this->_get(self::CUSTOMER_ID);
- }
- /**
- * Get region
- *
- * @return \Magento\TestModuleExtensionAttributes\Model\Data\FakeRegion|null
- */
- public function getRegion()
- {
- return $this->_get(self::REGION);
- }
- /**
- * Get region
- *
- * @return \Magento\TestModuleExtensionAttributes\Model\Data\FakeRegion[]|null
- */
- public function getRegions()
- {
- return $this->_get(self::REGIONS);
- }
- /**
- * Two-letter country code in ISO_3166-2 format
- *
- * @return string|null
- */
- public function getCountryId()
- {
- return $this->_get(self::COUNTRY_ID);
- }
- /**
- * Get street
- *
- * @return string[]|null
- */
- public function getStreet()
- {
- return $this->_get(self::STREET);
- }
- /**
- * Get company
- *
- * @return string|null
- */
- public function getCompany()
- {
- return $this->_get(self::COMPANY);
- }
- /**
- * Get telephone number
- *
- * @return string|null
- */
- public function getTelephone()
- {
- return $this->_get(self::TELEPHONE);
- }
- /**
- * Get fax number
- *
- * @return string|null
- */
- public function getFax()
- {
- return $this->_get(self::FAX);
- }
- /**
- * Get postcode
- *
- * @return string|null
- */
- public function getPostcode()
- {
- return $this->_get(self::POSTCODE);
- }
- /**
- * Get city name
- *
- * @return string|null
- */
- public function getCity()
- {
- return $this->_get(self::CITY);
- }
- /**
- * Get first name
- *
- * @return string|null
- */
- public function getFirstname()
- {
- return $this->_get(self::FIRSTNAME);
- }
- /**
- * Get last name
- *
- * @return string|null
- */
- public function getLastname()
- {
- return $this->_get(self::LASTNAME);
- }
- /**
- * Get middle name
- *
- * @return string|null
- */
- public function getMiddlename()
- {
- return $this->_get(self::MIDDLENAME);
- }
- /**
- * Get prefix
- *
- * @return string|null
- */
- public function getPrefix()
- {
- return $this->_get(self::PREFIX);
- }
- /**
- * Get suffix
- *
- * @return string|null
- */
- public function getSuffix()
- {
- return $this->_get(self::SUFFIX);
- }
- /**
- * Get Vat id
- *
- * @return string|null
- */
- public function getVatId()
- {
- return $this->_get(self::VAT_ID);
- }
- /**
- * Get if this address is default shipping address.
- *
- * @return bool|null
- */
- public function isDefaultShipping()
- {
- return $this->_get(self::DEFAULT_SHIPPING);
- }
- /**
- * {@inheritdoc}
- *
- * @return \Magento\TestModuleExtensionAttributes\Api\Data\FakeAddressExtensionInterface|null
- */
- public function getExtensionAttributes()
- {
- return $this->_getExtensionAttributes();
- }
- /**
- * Get if this address is default billing address
- *
- * @return bool|null
- */
- public function isDefaultBilling()
- {
- return $this->_get(self::DEFAULT_BILLING);
- }
- /**
- * {@inheritdoc}
- *
- * @param \Magento\TestModuleExtensionAttributes\Api\Data\FakeAddressExtensionInterface $extensionAttributes
- * @return $this
- */
- public function setExtensionAttributes(
- \Magento\TestModuleExtensionAttributes\Api\Data\FakeAddressExtensionInterface $extensionAttributes
- ) {
- return $this->_setExtensionAttributes($extensionAttributes);
- }
- }
|