◆ __construct()
MediaWiki\Extension\ChessBrowser\NotationAnalyzer::__construct |
( |
string | $notation | ) |
|
◆ getFromFile()
MediaWiki\Extension\ChessBrowser\NotationAnalyzer::getFromFile |
( |
| ) |
|
Get the file the piece started on.
- Returns
- int|null
◆ getFromRank()
MediaWiki\Extension\ChessBrowser\NotationAnalyzer::getFromRank |
( |
| ) |
|
Get the rank the piece started on.
- Returns
- int|null
◆ getPieceType()
MediaWiki\Extension\ChessBrowser\NotationAnalyzer::getPieceType |
( |
string | $color | ) |
|
Get the piece type making the move.
- Parameters
-
- Returns
- int
◆ getPromotion()
MediaWiki\Extension\ChessBrowser\NotationAnalyzer::getPromotion |
( |
| ) |
|
Get the promotion.
If the notation token contains an equal sign then it's a promotion
- Returns
- string
◆ getTargetSquare()
MediaWiki\Extension\ChessBrowser\NotationAnalyzer::getTargetSquare |
( |
| ) |
|
Get the target square.
- Returns
- int|string
The documentation for this class was generated from the following file:
- includes/NotationAnalyzer.php