# FeedItemContent.class.php

Go to the documentation of this file.

    00001 <?php
    00002 /***************************************************************************
    00003  *   Copyright (C) 2007 by Dmitry A. Lomash                                *
    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
    00015     final class FeedItemContent
    00016     {
    00017         private $type = null;
    00018         private $body = null;
    00019
    00023         public static function create()
    00024         {
    00025             return new self;
    00026         }
    00027
    00031         public function getType()
    00032         {
    00033             return $this->type;
    00034         }
    00035
    00039         public function setType(FeedItemContentType $type)
    00040         {
    00041             $this->type = $type;
    00042
    00043             return $this;
    00044         }
    00045
    00046         public function getBody()
    00047         {
    00048             return $this->body;
    00049         }
    00050
    00054         public function setBody($body)
    00055         {
    00056             $this->body = $body;
    00057
    00058             return $this;
    00059         }
    00060     }
    00061 ?>