<?php

namespace Sso\BackendBundle\Api\Helper;

use Symfony\Component\DependencyInjection\ContainerInterface as Container;
use Sso\BackendBundle\Api\Manager as ApiManager;

class Factory
{
    /**
     * @var array
     */
    protected $setter;

    /**
     * @var ApiManager
     */
    protected $apiM;

    public function __construct(ApiManager $apiM)
    {
        $this->apiM = $apiM;
    }


    /**
     * @return Form
     */
    public function form()
    {
        if (!isset($this->setter['form'])) {
            $this->setter['form'] = new Form($this->apiM);
        }
        return $this->setter['form'];
    }

}