It is a syntax error. The use
statement in this form isn't allowed for a class method. It is for closures only.
I guess you want something like this:
class Story {
private $storyText;
public function build () {
$this->storyText .= "blabla";
};
}
Try to start with PHP's OOP Basics described in the manual.