Sylius\Behat\Context\Transform\AddressContext::createAddress PHP Method

createAddress() private method

private 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
$countryCode string
$firstName string
$lastName string
$city string
$street string
$postCode string
$provinceName string
return Sylius\Component\Core\Model\AddressInterface
    private function createAddress($countryCode = 'US', $firstName = 'John', $lastName = 'Doe', $city = 'Ankh Morpork', $street = 'Frost Alley', $postCode = '90210', $provinceName = null)
    {
        /** @var AddressInterface $address */
        $address = $this->addressFactory->createNew();
        $address->setCountryCode($countryCode);
        $address->setFirstName($firstName);
        $address->setLastName($lastName);
        $address->setCity($city);
        $address->setStreet($street);
        $address->setPostcode($postCode);
        $address->setProvinceName($provinceName);
        return $address;
    }