| 1 | <?php |
||
| 7 | abstract class Bracket |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var Codepoint |
||
| 11 | */ |
||
| 12 | private $pairedWith; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param Codepoint $pairedWith |
||
| 16 | */ |
||
| 17 | protected function __construct(Codepoint $pairedWith) |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @return Codepoint |
||
| 24 | */ |
||
| 25 | public function getPairedWith() |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param Codepoint $pairedWith |
||
| 32 | * @return OpenBracket |
||
| 33 | */ |
||
| 34 | public static function createOpen(Codepoint $pairedWith) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param Codepoint $pairedWith |
||
| 41 | * @return OpenBracket |
||
| 42 | */ |
||
| 43 | public static function createClose(Codepoint $pairedWith) |
||
| 47 | } |