DefaultPages::generate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * This file is part of Cecil.
5
 *
6
 * (c) Arnaud Ligny <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Cecil\Generator;
15
16
/**
17
 * DefaultPages generator class.
18
 *
19
 * This class extends the VirtualPages generator to create default pages
20
 * based on the configuration key 'pages.default'.
21
 * It is used to generate pages that are not explicitly defined in the content.
22
 * The pages are generated based on the configuration settings and can include
23
 * common pages like '404', '500', 'about', etc.
24
 */
25
class DefaultPages extends VirtualPages
26
{
27
    protected $configKey = 'pages.default';
28
29
    /**
30
     * {@inheritdoc}
31
     */
32
    public function generate(): void
33
    {
34
        parent::generate();
35
    }
36
}
37