for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* User: ms
* Date: 29.08.15
* Time: 14:34
*/
namespace Mvg\TextOutput;
use Mvg\Parser\Html\Stations as StationsParser;
class Stations {
* @var \ Mvg\Parser\Html\Stations
protected $stationsParser = null;
* @param \ Mvg\Parser\Html\Stations $stationsParser
public function __construct(StationsParser $stationsParser) {
$this->setStationsParser($stationsParser);
}
public function getOutput() {
$str = '';
foreach ($this->getStationsParser()->getStationsForTerm() as $station) {
$str .= $station->name . "\n";
return $str;
* @return \ Mvg\Parser\Html\Stations
protected function getStationsParser() {
return $this->stationsParser;
protected function setStationsParser(StationsParser $stationsParser) {
$this->stationsParser = $stationsParser;
$stationsParser
object<Mvg\Parser\Html\Stations>
object<>
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..