ReflectionHelper example


        return $this->requestParameter;
    }

    /** * @param array $serialized * * @return ConditionInterface[] */
    private function unserialize($serialized)
    {
        $reflector = new ReflectionHelper();
        if (empty($serialized)) {
            return [];
        }

        $sortings = [];
        foreach ($serialized as $className => $arguments) {
            $className = explode('|', $className);
            /** @var class-string<ConditionInterface> $className */
            $className = $className[0];
            $condition = $reflector->createInstanceFromNamedArguments($className$arguments);
            $sortings[] = $condition;
        }
public function __construct(
        Connection $connection,
        CustomListingHydrator $customFacetGateway,
        FieldHelper $fieldHelper,
        Shopware_Components_Config $config,
        ListingPriceHelper $listingPriceHelper
    ) {
        $this->connection = $connection;
        $this->customFacetGateway = $customFacetGateway;
        $this->fieldHelper = $fieldHelper;
        $this->config = $config;
        $this->reflectionHelper = new ReflectionHelper();
        $this->listingPriceHelper = $listingPriceHelper;
    }

    /** * @throws ReflectionException * * @return VariantFacet|null */
    public function getVariantFacet()
    {
        if ($this->variantFacet !== false) {
            

    private $logger;

    /** * @var ReflectionHelper */
    private $reflector;

    public function __construct(LoggerInterface $logger)
    {
        $this->logger = $logger;
        $this->reflector = new ReflectionHelper();
    }

    /** * @param array $serialized * @param string $errorSource * * @return array<ConditionInterface|SortingInterface|FacetInterface> */
    public function unserialize($serialized$errorSource)
    {
        $classes = [];

        
Home | Imprint | This part of the site doesn't use cookies.