PHP 클래스 spec\Sylius\Bundle\ProductBundle\Validator\UniqueSimpleProductCodeValidatorSpec

상속: extends PhpSpec\ObjectBehavior
파일 보기 프로젝트 열기: sylius/sylius

공개 메소드들

메소드 설명
it_add_violation_if_product_is_simple_and_code_has_been_used_in_other_product_variant ( Symfony\Component\Validator\Context\ExecutionContextInterface $context, Sylius\Component\Product\Model\ProductInterface $product, Sylius\Component\Product\Model\ProductVariantInterface $existingProductVariant, Sylius\Component\Product\Repository\ProductVariantRepositoryInterface $productVariantRepository, Symfony\Component\Validator\Violation\ConstraintViolationBuilderInterface $constraintViolationBuilder )
it_does_not_add_violation_if_product_is_configurable ( Symfony\Component\Validator\Context\ExecutionContextInterface $context, Sylius\Component\Product\Model\ProductInterface $product )
it_does_not_add_violation_if_product_is_simple_but_code_has_not_been_used_among_neither_producs_nor_product_variants ( Symfony\Component\Validator\Context\ExecutionContextInterface $context, Sylius\Component\Product\Model\ProductInterface $product, Sylius\Component\Product\Repository\ProductVariantRepositoryInterface $productVariantRepository )
it_is_a_constraint_validator ( )
it_is_initializable ( )
let ( Symfony\Component\Validator\Context\ExecutionContextInterface $context, Sylius\Component\Product\Repository\ProductVariantRepositoryInterface $productVariantRepository )

메소드 상세

it_add_violation_if_product_is_simple_and_code_has_been_used_in_other_product_variant() 공개 메소드

public it_add_violation_if_product_is_simple_and_code_has_been_used_in_other_product_variant ( Symfony\Component\Validator\Context\ExecutionContextInterface $context, Sylius\Component\Product\Model\ProductInterface $product, Sylius\Component\Product\Model\ProductVariantInterface $existingProductVariant, Sylius\Component\Product\Repository\ProductVariantRepositoryInterface $productVariantRepository, Symfony\Component\Validator\Violation\ConstraintViolationBuilderInterface $constraintViolationBuilder )
$context Symfony\Component\Validator\Context\ExecutionContextInterface
$product Sylius\Component\Product\Model\ProductInterface
$existingProductVariant Sylius\Component\Product\Model\ProductVariantInterface
$productVariantRepository Sylius\Component\Product\Repository\ProductVariantRepositoryInterface
$constraintViolationBuilder Symfony\Component\Validator\Violation\ConstraintViolationBuilderInterface

it_does_not_add_violation_if_product_is_configurable() 공개 메소드

public it_does_not_add_violation_if_product_is_configurable ( Symfony\Component\Validator\Context\ExecutionContextInterface $context, Sylius\Component\Product\Model\ProductInterface $product )
$context Symfony\Component\Validator\Context\ExecutionContextInterface
$product Sylius\Component\Product\Model\ProductInterface

it_does_not_add_violation_if_product_is_simple_but_code_has_not_been_used_among_neither_producs_nor_product_variants() 공개 메소드

public it_does_not_add_violation_if_product_is_simple_but_code_has_not_been_used_among_neither_producs_nor_product_variants ( Symfony\Component\Validator\Context\ExecutionContextInterface $context, Sylius\Component\Product\Model\ProductInterface $product, Sylius\Component\Product\Repository\ProductVariantRepositoryInterface $productVariantRepository )
$context Symfony\Component\Validator\Context\ExecutionContextInterface
$product Sylius\Component\Product\Model\ProductInterface
$productVariantRepository Sylius\Component\Product\Repository\ProductVariantRepositoryInterface

it_is_a_constraint_validator() 공개 메소드

it_is_initializable() 공개 메소드

public it_is_initializable ( )

let() 공개 메소드

public let ( Symfony\Component\Validator\Context\ExecutionContextInterface $context, Sylius\Component\Product\Repository\ProductVariantRepositoryInterface $productVariantRepository )
$context Symfony\Component\Validator\Context\ExecutionContextInterface
$productVariantRepository Sylius\Component\Product\Repository\ProductVariantRepositoryInterface