public function withFooter($footer) { Type::enforce($footer, Footer::getClassName()); $this->footer = $footer; return $this; }