[$this, 'handleTitle'], ]; } public function parse(\Picea\Compiler\Context &$context, ?string $arguments, string $token, array $options = []) : string { return << PHP; } public function handleTitle(? string $set = null, ...$arguments) : ? string { if ( $set === null ) { return $this->title; } else { # Fixed a bug where template inheritance was rewriting title if ( empty($this->title) ) { $this->title = $arguments ? sprintf($set, ...$arguments) : $set; } } return null; } }