<?php

namespace LightSaml\Context\Profile;

use LightSaml\Model\Assertion\Assertion;
use LightSaml\Model\Assertion\EncryptedElement;

class AssertionContext extends AbstractProfileContext
{
    /** @var Assertion|null */
    private $assertion;

    /** @var EncryptedElement|null */
    private $encryptedAssertion;

    /** @var string */
    private $id;

    /**
     * @return string
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * @param string $id
     *
     * @return AssertionContext
     */
    public function setId($id)
    {
        $this->id = $id;

        return $this;
    }

    /**
     * @return Assertion|null
     */
    public function getAssertion()
    {
        return $this->assertion;
    }

    /**
     *
     * @return AssertionContext
     */
    public function setAssertion(?Assertion $assertion = null)
    {
        $this->assertion = $assertion;

        return $this;
    }

    /**
     * @return EncryptedElement|null
     */
    public function getEncryptedAssertion()
    {
        return $this->encryptedAssertion;
    }

    /**
     *
     * @return AssertionContext
     */
    public function setEncryptedAssertion(?EncryptedElement $encryptedAssertion = null)
    {
        $this->encryptedAssertion = $encryptedAssertion;

        return $this;
    }
}
