PEIP_String_Message.php

Go to the documentation of this file.
00001 <?php
00002 
00003 /*
00004  * This file is part of the PEIP package.
00005  * (c) 2010 Timo Michna <timomichna/yahoo.de>
00006  * 
00007  * For the full copyright and license information, please view the LICENSE
00008  * file that was distributed with this source code.
00009  */
00010 
00023 class PEIP_String_Message 
00024     extends PEIP_Generic_Message {
00025     
00026     
00032     protected function doSetContent($content){
00033         $this->content = (bool)$content ? (string)$content : '';    
00034     }
00035     
00036     
00041     public function __toString(){
00042         return $this->getContent();
00043     }
00044     
00045     public static function build(array $arguments = array()){
00046         return PEIP_Generic_Builder::getInstance('PEIP_String_Message')->build($arguments); 
00047     }
00048 }

Generated on Mon Apr 12 11:39:00 2010 for PEIP by  doxygen 1.5.1