/**
  * 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;
 }
 public function __construct($data = null)
 {
     parent::__construct(array('author', 'title', 'coverPicture', 'affiliateUrl', 'description'), $data);
 }
 public function __construct($data = null)
 {
     parent::__construct(array('author', 'title', 'text'), $data);
 }