DataSift\Storyplayer\PlayerLib\Story_Result::__construct PHP Метод

__construct() публичный Метод

public __construct ( Story $story )
$story Story
    public function __construct(Story $story)
    {
        // initialise our parent first
        parent::__construct($story->getCategory() . ' > ' . $story->getGroupAsString() . ' > ' . $story->getName());
        // remember the story we are reporting on
        $this->story = $story;
        // we want success to say 'PASS' rather than 'OKAY'
        $this->resultStrings[self::OKAY] = 'PASS';
    }