FakeInjectableBlockStartParser.php 957 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. declare(strict_types=1);
  3. /*
  4. * This file is part of the league/commonmark package.
  5. *
  6. * (c) Colin O'Dell <colinodell@gmail.com>
  7. *
  8. * For the full copyright and license information, please view the LICENSE
  9. * file that was distributed with this source code.
  10. */
  11. namespace League\CommonMark\Tests\Unit\Environment;
  12. use League\CommonMark\Environment\EnvironmentAwareInterface;
  13. use League\CommonMark\Parser\Block\BlockStart;
  14. use League\CommonMark\Parser\Block\BlockStartParserInterface;
  15. use League\CommonMark\Parser\Cursor;
  16. use League\CommonMark\Parser\MarkdownParserStateInterface;
  17. use League\Config\ConfigurationAwareInterface;
  18. final class FakeInjectableBlockStartParser implements BlockStartParserInterface, ConfigurationAwareInterface, EnvironmentAwareInterface
  19. {
  20. use FakeInjectableTrait;
  21. public function tryStart(Cursor $cursor, MarkdownParserStateInterface $parserState): ?BlockStart
  22. {
  23. return BlockStart::none();
  24. }
  25. }