getGetterCode() public method

Creates getter code which is used for generation of php file for object classes using this data type
public getGetterCode ( $class ) : string
$class
return string
示例#1
0
 /**
  * @param $class
  * @return string
  */
 public function getGetterCode($class)
 {
     $code = "";
     $code .= parent::getGetterCode($class);
     return $code;
 }
 /**
  * @param $class
  * @return string
  */
 public function getGetterCode($class)
 {
     $code = "";
     $code .= parent::getGetterCode($class);
     foreach ($this->getFieldDefinitions() as $fd) {
         /**
          * @var $fd Object\ClassDefinition\Data
          */
         $code .= $fd->getGetterCodeLocalizedfields($class);
     }
     return $code;
 }