<?php

declare(strict_types=1);

namespace KupShop\GraphQLBundle\ApiPublic\Types\Redirect;

use TheCodingMachine\GraphQLite\Annotations\Field;
use TheCodingMachine\GraphQLite\Annotations\Type;

/**
 * @Type()
 */
class RedirectLocation
{
    protected ?string $location;
    protected ?string $name;
    protected ?string $flag;
    protected ?string $actualName;
    protected ?string $actualFlag;

    public function __construct(?string $location, ?string $name, ?string $flag, ?string $actualName, ?string $actualFlag)
    {
        $this->location = $location;
        $this->name = $name;
        $this->flag = $flag;
        $this->actualName = $actualName;
        $this->actualFlag = $actualFlag;
    }

    /**
     * @Field()
     */
    public function getLocation(): ?string
    {
        return $this->location;
    }

    /**
     * @Field()
     */
    public function getName(): ?string
    {
        return $this->name;
    }

    /**
     * @Field()
     */
    public function getFlag(): ?string
    {
        return $this->flag;
    }

    /**
     * @Field()
     */
    public function getActualName(): ?string
    {
        return $this->actualName;
    }

    /**
     * @Field()
     */
    public function getActualFlag(): ?string
    {
        return $this->actualFlag;
    }
}
