Skip to content
Snippets Groups Projects
Select Git revision
  • b638448e4dfbefa65d757b16f1793a9201260b66
  • main default protected
  • register-logging-channel
  • expr-lang
  • ci-82
  • attr-events
  • locale-wip
  • custom-routes
  • v0.1.85
  • v0.1.84
  • v0.1.83
  • v0.1.82
  • v0.1.81
  • v0.1.80
  • v0.1.79
  • v0.1.78
  • v0.1.77
  • v0.1.76
  • v0.1.75
  • v0.1.74
  • v0.1.73
  • v0.1.72
  • v0.1.71
  • v0.1.70
  • v0.1.69
  • v0.1.68
  • v0.1.67
  • v0.1.65
28 results

LocalDataPreEvent.php

Blame
  • LocalDataPreEvent.php 990 B
    <?php
    
    declare(strict_types=1);
    
    namespace Dbp\Relay\CoreBundle\LocalData;
    
    use Symfony\Contracts\EventDispatcher\Event;
    
    class LocalDataPreEvent extends Event
    {
        /** @var string[] */
        private $queryParametersIn;
    
        /** @var array */
        private $options;
    
        public function __construct(array $options)
        {
            $this->queryParametersIn = [];
            $this->options = $options;
        }
    
        public function initQueryParameters(array $queryParametersIn): void
        {
            $this->queryParametersIn = $queryParametersIn;
        }
    
        public function getPendingQueryParameters(): array
        {
            return $this->queryParametersIn;
        }
    
        public function acknowledgeQueryParameter(string $queryParameterName): void
        {
            unset($this->queryParametersIn[$queryParameterName]);
        }
    
        public function getOptions(): array
        {
            return $this->options;
        }
    
        public function setOptions(array $options): void
        {
            $this->options = $options;
        }
    }