From 0f2f71da0c3447cf70a15fa5c2c73636e069e015 Mon Sep 17 00:00:00 2001 From: Andres Rey Date: Sun, 26 Nov 2017 17:59:53 +0000 Subject: New Readability class --- src/Readability.php | 113 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) diff --git a/src/Readability.php b/src/Readability.php index e69de29..92d3f2b 100644 --- a/src/Readability.php +++ b/src/Readability.php @@ -0,0 +1,113 @@ +configuration = $configuration; + } + + /** + * @return null|string + */ + public function __toString() + { + return $this->getContent(); + } + + /** + * @return string|null + */ + public function getTitle() + { + return $this->title; + } + + /** + * @param null $title + */ + protected function setTitle($title) + { + $this->title = $title; + } + + /** + * @return string|null + */ + public function getContent() + { + return $this->content; + } + + /** + * @param null $content + */ + protected function setContent($content) + { + $this->content = $content; + } + + /** + * @return string|null + */ + public function getImage() + { + return $this->image; + } + + /** + * @param null $image + */ + protected function setImage($image) + { + $this->image = $image; + } + + /** + * @return string|null + */ + public function getAuthor() + { + return $this->author; + } + + /** + * @param null $author + */ + protected function setAuthor($author) + { + $this->author = $author; + } + +} \ No newline at end of file -- cgit v1.2.3