public function createBlogPost($title = null, $body = null) { $this->title = (string) $title; $this->body = (string) $body; $this->title = Sanitize::sanitize_string($this->title); $this->body = Sanitize::sanitize_string($this->body); // add database method to push into Database }