public function __construct($id, $content = null, $title = null) { self::$modal_started = true; $this->id = new \Variable\Attribute($id, 'id'); $this->title = new \Variable\TextOnly($title, 'title'); $this->content = new \Variable\String($content, 'content'); }