DefaultPages   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A generate() 0 3 1
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