Exemplo n.º 1
0
 /**
  * Generates getter method for a given property.
  *
  * @param WS_Model_Xml_Property $property The property used to generate the getter for.
  *
  * @return WS_Model_Template_Method
  */
 protected function generateGetterMethod(WS_Model_Xml_Property $property)
 {
     $methodName = WS_Model_AbstractBase::generateGetterName($property->getName());
     $methodTpl = $this->generateMethod($methodName, WS_Model_Template_Abstract::MODIFIER_PUBLIC);
     $body = "return \$this->{$property->getName()};";
     $methodTpl->setBody($body);
     return $methodTpl;
 }
Exemplo n.º 2
0
 public function __construct($data = null)
 {
     parent::__construct(array('author', 'title', 'coverPicture', 'affiliateUrl', 'description'), $data);
 }
Exemplo n.º 3
0
 public function __construct($data = null)
 {
     parent::__construct(array('author', 'title', 'text'), $data);
 }