public function setContainer($container)
    {
        if (!is_array($container) && !$container instanceof \ArrayAccess) {
            throw new InvalidArgumentException('array or ArrayAccess Object', 0);
        }

        $this->container = $container;

        return $this;
    }