<?php

namespace LightSaml\Bridge\Pimple\Container;

use LightSaml\Build\Container\PartyContainerInterface;
use LightSaml\Store\EntityDescriptor\EntityDescriptorStoreInterface;
use LightSaml\Store\TrustOptions\TrustOptionsStoreInterface;

/**
 * @deprecated 5.0.0 No longer used by internal code and not recommended
 */
class PartyContainer extends AbstractPimpleContainer implements PartyContainerInterface
{
    public const IDP_ENTITY_DESCRIPTOR = 'lightsaml.container.idp_entity_descriptor';
    public const SP_ENTITY_DESCRIPTOR = 'lightsaml.container.sp_entity_descriptor';
    public const TRUST_OPTIONS_STORE = 'lightsaml.container.trust_options_store';

    /**
     * @return EntityDescriptorStoreInterface
     */
    public function getIdpEntityDescriptorStore()
    {
        return $this->pimple[self::IDP_ENTITY_DESCRIPTOR];
    }

    /**
     * @return EntityDescriptorStoreInterface
     */
    public function getSpEntityDescriptorStore()
    {
        return $this->pimple[self::SP_ENTITY_DESCRIPTOR];
    }

    /**
     * @return TrustOptionsStoreInterface
     */
    public function getTrustOptionsStore()
    {
        return $this->pimple[self::TRUST_OPTIONS_STORE];
    }
}
