| 1 | <?php |
||
| 21 | class SitemapBuilder implements SitemapBuilderInterface |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var SitemapFactoryInterface |
||
| 25 | */ |
||
| 26 | private $sitemapFactory; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var array |
||
| 30 | */ |
||
| 31 | private $providers = []; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param SitemapFactoryInterface $sitemapFactory |
||
| 35 | */ |
||
| 36 | public function __construct(SitemapFactoryInterface $sitemapFactory) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritdoc} |
||
| 43 | */ |
||
| 44 | public function addProvider(UrlProviderInterface $provider) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * {@inheritdoc} |
||
| 51 | */ |
||
| 52 | public function build() |
||
| 64 | } |
||
| 65 |