4 * This file is part of the Behat Gherkin.
5 * (c) Konstantin Kudryashov <ever.zet@gmail.com>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
11 namespace Behat\Gherkin\Node;
14 * Represents Gherkin PyString argument.
16 * @author Konstantin Kudryashov <ever.zet@gmail.com>
18 class PyStringNode implements ArgumentInterface
23 private $strings = array();
30 * Initializes PyString.
32 * @param array $strings String in form of [$stringLine]
33 * @param integer $line Line number where string been started
35 public function __construct(array $strings, $line)
37 $this->strings = $strings;
46 public function getNodeType()
52 * Returns entire PyString lines set.
56 public function getStrings()
58 return $this->strings;
66 public function getRaw()
68 return implode("\n", $this->strings);
72 * Converts PyString into string.
76 public function __toString()
78 return $this->getRaw();
82 * Returns line number at which PyString was started.
86 public function getLine()