<?php

abstract class tad_DI52_ServiceProvider implements tad_DI52_ServiceProviderInterface
{
    /**
     * Whether the service provider will be a deferred one or not.
     *
     * @var bool
     */
    protected $deferred = false;

    /**
     * @var tad_DI52_Container
     */
    protected $container;


    /**
     * tad_DI52_ServiceProvider constructor.
     * @param tad_DI52_Container $container
     */
    public function __construct(tad_DI52_Container $container)
    {
        $this->container = $container;
    }

    /**
     * Whether the service provider will be a deferred one or not.
     *
     * @return bool
     */
    public function isDeferred()
    {
        return $this->deferred;
    }

    /**
     * Returns an array of the class or interfaces bound and provided by the service provider.
     *
     * @return array
     */
    public function provides()
    {
        return array();
    }
}
