checkIfPropertyAccessIsAllowed example


    public function __construct(protected array $data = [])
    {
    }

    /** * @param string $name */
    public function __get($name): mixed
    {
        if (FieldVisibility::$isInTwigRenderingContext) {
            $this->checkIfPropertyAccessIsAllowed($name);
        }

        return $this->data[$name];
    }

    /** * @param string $name */
    public function __set($name, mixed $value): void
    {
        if ($name === 'id') {
            
public function setUsername(string $username): void
    {
        $this->username = $username;
    }

    /** * @internal */
    public function getPassword(): string
    {
        $this->checkIfPropertyAccessIsAllowed('password');

        return $this->password;
    }

    /** * @internal */
    public function setPassword(string $password): void
    {
        $this->password = $password;
    }

    
public function setMetaDataRaw(string $metaDataRaw): void
    {
        $this->metaDataRaw = $metaDataRaw;
    }

    /** * @internal */
    public function getMediaTypeRaw(): ?string
    {
        $this->checkIfPropertyAccessIsAllowed('mediaTypeRaw');

        return $this->mediaTypeRaw;
    }

    /** * @internal */
    public function setMediaTypeRaw(string $mediaTypeRaw): void
    {
        $this->mediaTypeRaw = $mediaTypeRaw;
    }

    
public function setCompany(string $company): void
    {
        $this->company = $company;
    }

    /** * @internal */
    public function getPassword(): ?string
    {
        $this->checkIfPropertyAccessIsAllowed('password');

        return $this->password;
    }

    /** * @internal */
    public function setPassword(?string $password): void
    {
        $this->password = $password;
    }

    

    public function setAllowedHosts(?array $allowedHosts): void
    {
        $this->allowedHosts = $allowedHosts;
    }

    /** * @internal */
    public function getIconRaw(): ?string
    {
        $this->checkIfPropertyAccessIsAllowed('iconRaw');

        return $this->iconRaw;
    }

    /** * @internal */
    public function setIconRaw(?string $iconRaw): void
    {
        $this->iconRaw = $iconRaw;
    }

    

        $this->priority = $priority;
    }

    /** * @internal * * @return string|Flow|null */
    public function getPayload()
    {
        $this->checkIfPropertyAccessIsAllowed('payload');

        return $this->payload;
    }

    /** * @internal * * @param string|Flow|null $payload */
    public function setPayload($payload): void
    {
        
/** * @var string */
    private $_entityName;

    private ?FieldVisibility $_fieldVisibility = null;

    public function __get($name)
    {
        if (FieldVisibility::$isInTwigRenderingContext) {
            $this->checkIfPropertyAccessIsAllowed($name);
        }

        return $this->$name; /* @phpstan-ignore-line */
    }

    public function __set($name$value): void
    {
        $this->$name = $value; /* @phpstan-ignore-line */
    }

    public function __isset($name)
    {

        $this->script = $script;
    }

    /** * @internal * * @return string|array|null */
    public function getConstraints()
    {
        $this->checkIfPropertyAccessIsAllowed('constraints');

        return $this->constraints;
    }

    /** * @internal * * @param string|array|null $constraints */
    public function setConstraints($constraints): void
    {
        
public function setPrivate(bool $private): void
    {
        $this->private = $private;
    }

    /** * @internal */
    public function getMediaThumbnailSizesRo(): ?string
    {
        $this->checkIfPropertyAccessIsAllowed('mediaThumbnailSizesRo');

        return $this->mediaThumbnailSizesRo;
    }

    /** * @internal */
    public function setMediaThumbnailSizesRo(string $mediaThumbnailSizesRo): void
    {
        $this->mediaThumbnailSizesRo = $mediaThumbnailSizesRo;
    }

    
public function setUpgradedAt(\DateTimeInterface $upgradedAt): void
    {
        $this->upgradedAt = $upgradedAt;
    }

    /** * @internal */
    public function getIconRaw(): ?string
    {
        $this->checkIfPropertyAccessIsAllowed('iconRaw');

        return $this->iconRaw;
    }

    /** * @internal */
    public function setIconRaw(string $iconRaw): void
    {
        $this->iconRaw = $iconRaw;
    }

    
public function setName(string $name): void
    {
        $this->name = $name;
    }

    /** * @return Rule|string|null */
    public function getPayload()
    {
        $this->checkIfPropertyAccessIsAllowed('payload');

        return $this->payload;
    }

    /** * @internal * * @param Rule|string|null $payload */
    public function setPayload($payload): void
    {
        
public function setUrl(string $url): void
    {
        $this->url = $url;
    }

    /** * @internal */
    public function getSerializedWebhookMessage(): object|string
    {
        $this->checkIfPropertyAccessIsAllowed('serializedWebhookMessage');

        return $this->serializedWebhookMessage;
    }

    /** * @internal */
    public function setSerializedWebhookMessage(object|string $serializedWebhookMessage): void
    {
        $this->serializedWebhookMessage = $serializedWebhookMessage;
    }
}
Home | Imprint | This part of the site doesn't use cookies.