public function __construct() { parent::__construct('isRelativeModified'); $this->setParameter(new ParameterGenerator('name', 'string')); $this->setBody('return isset($this->_modified_relatives[$name]);'); }