interface ClassPatchInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/ClassPatchInterface.php \Prophecy\Doubler\ClassPatch\ClassPatchInterface
Class patch interface. Class patches extend doubles functionality or help Prophecy to avoid some internal PHP bugs.
@author Konstantin Kudryashov <ever.zet@gmail.com>
Hierarchy
- interface \Prophecy\Doubler\ClassPatch\ClassPatchInterface
Expanded class hierarchy of ClassPatchInterface
All classes that implement ClassPatchInterface
1 file declares its use of ClassPatchInterface
- Doubler.php in vendor/
phpspec/ prophecy/ src/ Prophecy/ Doubler/ Doubler.php
File
- vendor/
phpspec/ prophecy/ src/ Prophecy/ Doubler/ ClassPatch/ ClassPatchInterface.php, line 23
Namespace
Prophecy\Doubler\ClassPatchView source
interface ClassPatchInterface {
/**
* Checks if patch supports specific class node.
*
* @param ClassNode $node
*
* @return bool
*/
public function supports(ClassNode $node);
/**
* Applies patch to the specific class node.
*
* @param ClassNode $node
* @return void
*/
public function apply(ClassNode $node);
/**
* Returns patch priority, which determines when patch will be applied.
*
* @return int Priority number (higher - earlier)
*/
public function getPriority();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ClassPatchInterface:: |
public | function | Applies patch to the specific class node. | 8 |
ClassPatchInterface:: |
public | function | Returns patch priority, which determines when patch will be applied. | 8 |
ClassPatchInterface:: |
public | function | Checks if patch supports specific class node. | 8 |