Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
/*
6
 * This file is part of the league/commonmark package.
7
 *
8
 * (c) Colin O'Dell <colinodell@gmail.com>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
 
14
namespace League\CommonMark\Extension\Embed;
15
 
16
use League\CommonMark\Node\Block\AbstractBlock;
17
use League\CommonMark\Parser\Block\BlockContinue;
18
use League\CommonMark\Parser\Block\BlockContinueParserInterface;
19
use League\CommonMark\Parser\Cursor;
20
 
21
class EmbedParser implements BlockContinueParserInterface
22
{
23
    private Embed $embed;
24
 
25
    public function __construct(string $url)
26
    {
27
        $this->embed = new Embed($url);
28
    }
29
 
30
    public function getBlock(): AbstractBlock
31
    {
32
        return $this->embed;
33
    }
34
 
35
    public function isContainer(): bool
36
    {
37
        return false;
38
    }
39
 
40
    public function canHaveLazyContinuationLines(): bool
41
    {
42
        return false;
43
    }
44
 
45
    public function canContain(AbstractBlock $childBlock): bool
46
    {
47
        return false;
48
    }
49
 
50
    public function tryContinue(Cursor $cursor, BlockContinueParserInterface $activeBlockParser): ?BlockContinue
51
    {
52
        return BlockContinue::none();
53
    }
54
 
55
    public function addLine(string $line): void
56
    {
57
    }
58
 
59
    public function closeBlock(): void
60
    {
61
    }
62
}