1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?php
namespace AmpProject\Optimizer;
use AmpProject\Dom\Document;
/** * A singular transformer that is part of the transformation engine. * * @package ampproject/optimizer */ interface Transformer {
/** * Apply transformations to the provided DOM document. * * @param Document $document DOM document to apply the transformations to. * @param ErrorCollection $errors Collection of errors that are collected during transformation. * @return void */ public function transform(Document $document, ErrorCollection $errors); }
|