diff options
Diffstat (limited to 'src/HTML5/InstructionProcessor.php')
-rw-r--r-- | src/HTML5/InstructionProcessor.php | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/src/HTML5/InstructionProcessor.php b/src/HTML5/InstructionProcessor.php index ac6a23c..3a88a10 100644 --- a/src/HTML5/InstructionProcessor.php +++ b/src/HTML5/InstructionProcessor.php @@ -2,6 +2,7 @@ /** * A handler for processor instructions. */ + namespace Masterminds\HTML5; /** @@ -18,7 +19,6 @@ namespace Masterminds\HTML5; */ interface InstructionProcessor { - /** * Process an individual processing instruction. * @@ -28,16 +28,14 @@ interface InstructionProcessor * - Making any subsequent modifications to the DOM by modifying the * DOMElement or its attached DOM tree. * - * @param DOMElement $element - * The parent element for the current processing instruction. - * @param string $name - * The instruction's name. E.g. `<?php` has the name `php`. - * @param string $data - * All of the data between the opening and closing PI marks. - * @return DOMElement The element that should be considered "Current". This may just be - * the element passed in, but if the processor added more elements, - * it may choose to reset the current element to one of the elements - * it created. (When in doubt, return the element passed in.) + * @param \DOMElement $element The parent element for the current processing instruction + * @param string $name The instruction's name. E.g. `<?php` has the name `php`. + * @param string $data All of the data between the opening and closing PI marks + * + * @return \DOMElement The element that should be considered "Current". This may just be + * the element passed in, but if the processor added more elements, + * it may choose to reset the current element to one of the elements + * it created. (When in doubt, return the element passed in.) */ public function process(\DOMElement $element, $name, $data); } |