Метод | Описание | |
---|---|---|
__construct ( Sylius\Component\Resource\Factory\FactoryInterface $addressFactory, Sylius\Component\Addressing\Converter\CountryNameConverterInterface $countryNameConverter, Sylius\Component\Core\Repository\AddressRepositoryInterface $addressRepository ) | ||
createEmptyAddress ( ) | ||
createNewAddress ( $countryName ) | ||
createNewAddressWith ( $cityName, $street, $postcode, $countryName, $customerName, $provinceName = null ) | ||
createNewAddressWithName ( $name, $street, $postcode, $city, $countryName, $provinceName = null ) | ||
getByStreet ( $street ) |
Метод | Описание | |
---|---|---|
createAddress ( string $countryCode = 'US', string $firstName = 'John', string $lastName = 'Doe', string $city = 'Ankh Morpork', string $street = 'Frost Alley', string $postCode = '90210', string $provinceName = null ) : Sylius\Component\Core\Model\AddressInterface |
public __construct ( Sylius\Component\Resource\Factory\FactoryInterface $addressFactory, Sylius\Component\Addressing\Converter\CountryNameConverterInterface $countryNameConverter, Sylius\Component\Core\Repository\AddressRepositoryInterface $addressRepository ) | ||
$addressFactory | Sylius\Component\Resource\Factory\FactoryInterface | |
$countryNameConverter | Sylius\Component\Addressing\Converter\CountryNameConverterInterface | |
$addressRepository | Sylius\Component\Core\Repository\AddressRepositoryInterface |
public createNewAddressWith ( $cityName, $street, $postcode, $countryName, $customerName, $provinceName = null ) |
public createNewAddressWithName ( $name, $street, $postcode, $city, $countryName, $provinceName = null ) |