Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
container_aware_migration
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 setContainer
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2/**
3*
4* This file is part of the phpBB Forum Software package.
5*
6* @copyright (c) phpBB Limited <https://www.phpbb.com>
7* @license GNU General Public License, version 2 (GPL-2.0)
8*
9* For full copyright and license information, please see
10* the docs/CREDITS.txt file.
11*
12*/
13
14namespace phpbb\db\migration;
15
16use Symfony\Component\DependencyInjection\ContainerInterface;
17
18/**
19* Abstract base class for container aware database migrations.
20*/
21abstract class container_aware_migration extends migration
22{
23    /**
24     * @var ContainerInterface
25     */
26    protected $container;
27
28    /**
29     * {@inheritdoc}
30     */
31    public function setContainer(ContainerInterface|null $container = null)
32    {
33        $this->container = $container;
34    }
35}