src/Api/Story.php
public function caption() : string
    {
        $template = $this->info()->captionTemplate;

        foreach ($this->info()->captionComponents as $variable) {
            $template = str_replace('$' . $variable->key, $variable->value, $template);
        }

        return $template;
    }
public function caption() : string
    {
        $template = $this->info()->captionTemplate;

        foreach ($this->info()->captionComponents as $variable) {
            $template = str_replace('$' . $variable->key, $variable->value, $template);
        }

        return $template;
    }
public function caption ( ) : string { $ template = $ this -> info ( ) -> captionTemplate ; foreach ( $ this -> info ( ) -> captionComponents as $ variable ) { $ template = str_replace ( '$' . $ variable -> key , $ variable -> value , $ template ) ; } return $ template ; }
Generates the caption shown on PlayStation.

@return string
Generates the caption shown on PlayStation .