FeedItem.class.php

Go to the documentation of this file.
00001 <?php
00002 /***************************************************************************
00003  *   Copyright (C) 2007 by Dmitry A. Lomash, Dmitry E. Demidov             *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU Lesser General Public License as        *
00007  *   published by the Free Software Foundation; either version 3 of the    *
00008  *   License, or (at your option) any later version.                       *
00009  *                                                                         *
00010  ***************************************************************************/
00011 /* $Id: FeedItem.class.php 4687 2007-12-09 18:57:18Z voxus $ */
00012 
00016     final class FeedItem
00017     {
00018         private $id         = null;
00019         private $title      = null;
00020         private $content    = null;
00021         private $summary    = null;
00022         private $published  = null;
00023         private $link       = null;
00024         
00028         public static function create($title)
00029         {
00030             return new self($title);
00031         }
00032         
00033         public function __construct($title)
00034         {
00035             $this->title = $title;
00036         }
00037         
00038         public function getId()
00039         {
00040             return $this->id;
00041         }
00042         
00046         public function setId($id)
00047         {
00048             $this->id = $id;
00049             
00050             return $this;
00051         }
00052         
00053         public function getTitle()
00054         {
00055             return $this->title;
00056         }
00057         
00061         public function setTitle($title)
00062         {
00063             $this->title = $title;
00064             
00065             return $this;
00066         }
00067         
00068         public function getContent()
00069         {
00070             return $this->content;
00071         }
00072         
00076         public function setContent($content)
00077         {
00078             $this->content = $content;
00079             
00080             return $this;
00081         }
00082         
00083         public function getSummary()
00084         {
00085             return $this->summary;
00086         }
00087         
00091         public function setSummary($summary)
00092         {
00093             $this->summary = $summary;
00094             
00095             return $this;
00096         }
00097         
00101         public function getPublished()
00102         {
00103             return $this->published;
00104         }
00105         
00109         public function setPublished(Timestamp $published)
00110         {
00111             $this->published = $published;
00112             
00113             return $this;
00114         }
00115         
00116         public function getLink()
00117         {
00118             return $this->link;
00119         }
00120         
00124         public function setLink($link)
00125         {
00126             $this->link = $link;
00127             
00128             return $this;
00129         }
00130     }
00131 ?>

Generated on Sun Dec 9 21:56:24 2007 for onPHP by  doxygen 1.5.4