/home/sharedstore/public_html/prestashop.sharedstore.ma/src/Adapter/Address
Edit: /home/sharedstore/public_html/prestashop.sharedstore.ma/src/Adapter/Address/AddressFormatter.php (1641B)
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
declare(strict_types=1);
namespace PrestaShop\PrestaShop\Adapter\Address;
use Address;
use AddressFormat;
use PrestaShop\PrestaShop\Core\Address\AddressFormatterInterface;
use PrestaShop\PrestaShop\Core\Domain\Address\ValueObject\AddressId;
class AddressFormatter implements AddressFormatterInterface
{
/**
* @param AddressId $addressId
*
* @return string
*/
public function format(AddressId $addressId): string
{
return AddressFormat::generateAddress(
new Address($addressId->getValue())
);
}
}