1: <?php
2: /*
3: * Copyright (c) 2016 Geraldo B. Landre
4: *
5: * See the file LICENSE for copying permission.
6: */
7: namespace pgn\tags;
8:
9: use utils\Parser;
10:
11: /**
12: * Description of Black:
13: * The Black tag value is the name of the player or players of the black pieces.
14: * The names are given here as they are for the White tag value.
15: *
16: * Examples:
17: *
18: * [Black "Lasker, Emmanuel"]
19: *
20: * [Black "Smyslov, Vasily V."]
21: *
22: * [Black "Smith, John Q.:Woodpusher 2000"]
23: *
24: * [Black "Morphy"]
25: * @see pgn_standard.txt
26: * @author Geraldo
27: */
28: class Black extends White {
29:
30: /**
31: * Returns the name of the class, i.e., Black as a string
32: * @assert () === "Black"
33: * @return string Black
34: */
35: public function getName() {
36: $parsed = Parser::parseClassName(get_class());
37: return $parsed['className'];
38: }
39:
40: }
41: