PHP Класс Sylius\Behat\Context\Transform\AddressContext

Автор: Łukasz Chruściel ([email protected])
Наследование: implements Behat\Behat\Context\Context
Показать файл Открыть проект

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

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

createEmptyAddress() публичный Метод

public createEmptyAddress ( )

createNewAddress() публичный Метод

public createNewAddress ( $countryName )

createNewAddressWith() публичный Метод

public createNewAddressWith ( $cityName, $street, $postcode, $countryName, $customerName, $provinceName = null )

createNewAddressWithName() публичный Метод

public createNewAddressWithName ( $name, $street, $postcode, $city, $countryName, $provinceName = null )

getByStreet() публичный Метод

public getByStreet ( $street )