protected function addGetterSetter($property) {
		$properyName = $this->parseMethodName($property, '');
		$getter = "get{$properyName}";
		$setter = "set{$properyName}";
		
		// Extract array to $type, $default, $primary
		$type = null;
		extract($this->getNames()->properties[$property]);
		
		// Type Cast
		$cast = '';
		if ($type == 'int')
			$cast = '(int)';
		
		//METHODS
		// METHOD:getPropperty
		$method = $this->buildMethod($getter);
		$body = <<<MBODY
return {$cast}\$this->{$property};
MBODY;
		$method->setBody($body);
		$method->setDocBlock(DocBlockGenerator::fromArray([
			'shortDescription' => "Get the {$property} property",
			'tags' => [
			new ReturnTag(['datatype' => $type])
			]]));
		$this->_class->addMethodFromGenerator($method);
		
		//===============================================
		
		// METHOD:setPropperty
		$parameterSetter = new ParameterGenerator();
		$parameterSetter->setName($property);
		$method = $this->buildMethod($setter);
		$method->setParameter($parameterSetter);
		$body = <<<MBODY
\$this->{$property} = \${$property};
return \$this;
MBODY;
		$method->setBody($body);
		$method->setDocBlock(DocBlockGenerator::fromArray([
			'shortDescription' => "Set the {$property} property",
			'tags' => [
				new ParamTag($property, ['datatype' => $type]),
				new ReturnTag(['datatype'  => $this->getNames()->entityName])
			]]));
		$this->_class->addMethodFromGenerator($method);
	}
protected function addGetterSetter($property) {
		$properyName = $this->parseMethodName($property, '');
		$getter = "get{$properyName}";
		$setter = "set{$properyName}";
		
		// Extract array to $type, $default, $primary
		$type = null;
		extract($this->getNames()->properties[$property]);
		
		// Type Cast
		$cast = '';
		if ($type == 'int')
			$cast = '(int)';
		
		//METHODS
		// METHOD:getPropperty
		$method = $this->buildMethod($getter);
		$body = <<<MBODY
return {$cast}\$this->{$property};
MBODY;
		$method->setBody($body);
		$method->setDocBlock(DocBlockGenerator::fromArray([
			'shortDescription' => "Get the {$property} property",
			'tags' => [
			new ReturnTag(['datatype' => $type])
			]]));
		$this->_class->addMethodFromGenerator($method);
		
		//===============================================
		
		// METHOD:setPropperty
		$parameterSetter = new ParameterGenerator();
		$parameterSetter->setName($property);
		$method = $this->buildMethod($setter);
		$method->setParameter($parameterSetter);
		$body = <<<MBODY
\$this->{$property} = \${$property};
return \$this;
MBODY;
		$method->setBody($body);
		$method->setDocBlock(DocBlockGenerator::fromArray([
			'shortDescription' => "Set the {$property} property",
			'tags' => [
				new ParamTag($property, ['datatype' => $type]),
				new ReturnTag(['datatype'  => $this->getNames()->entityName])
			]]));
		$this->_class->addMethodFromGenerator($method);
	}
protected function addGetterSetter ( $ property ) { $ properyName = $ this -> parseMethodName ( $ property , '' ) ; $ getter = "get{$properyName}" ; $ setter = "set{$properyName}" ; // Extract array to $type, $default, $primary $ type = null ; extract ( $ this -> getNames ( ) -> properties [ $ property ] ) ; // Type Cast $ cast = '' ; if ( $ type == 'int' ) $ cast = '(int)' ; //METHODS // METHOD:getPropperty $ method = $ this -> buildMethod ( $ getter ) ; $ body =  <<<MBODY
return {$cast}\$this->{$property};
MBODY ; $ method -> setBody ( $ body ) ; $ method -> setDocBlock ( DocBlockGenerator :: fromArray ( [ 'shortDescription' => "Get the {$property} property" , 'tags' => [ new ReturnTag ( [ 'datatype' => $ type ] ) ] ] ) ) ; $ this -> _class -> addMethodFromGenerator ( $ method ) ; //=============================================== // METHOD:setPropperty $ parameterSetter = new ParameterGenerator ( ) ; $ parameterSetter -> setName ( $ property ) ; $ method = $ this -> buildMethod ( $ setter ) ; $ method -> setParameter ( $ parameterSetter ) ; $ body =  <<<MBODY
\$this->{$property} = \${$property};
return \$this;
MBODY ; $ method -> setBody ( $ body ) ; $ method -> setDocBlock ( DocBlockGenerator :: fromArray ( [ 'shortDescription' => "Set the {$property} property" , 'tags' => [ new ParamTag ( $ property , [ 'datatype' => $ type ] ) , new ReturnTag ( [ 'datatype' => $ this -> getNames ( ) -> entityName ] ) ] ] ) ) ; $ this -> _class -> addMethodFromGenerator ( $ method ) ; }
Create getter & setter methods for properties

@param string $property
Create getter & setter methods for properties