DataSift\Storyplayer\PlayerLib\Story_Checkpoint::__get PHP Method

__get() public method

throws the E5xx_NoSuchDataInCheckpoint exception if you attempt to get data that does not exist
public __get ( string $key ) : mixed
$key string the name of the data to store
return mixed the data stored in the checkpoint
    public function &__get($key)
    {
        // what are we doing?
        $log = usingLog()->startAction("retrieve '{$key}' from the checkpoint");
        // do we have the data to return?
        if (!isset($this->data[$key])) {
            // no, we do not
            $log->endAction("'{$key}' is not in the checkpoint");
            throw new E5xx_NoSuchDataInCheckpoint($key);
        }
        // yes, we do
        $log->endAction($this->data[$key]);
        // all done
        return $this->data[$key];
    }