layh.com

Whatever...TYPO3...FLOW3...and more...

File template for a FLOW3 model

File template for a FLOW3 model
<?php

namespace ${Vendor-name}\\${FLOW3-package}\Domain\Model;

/**
 * ${NAME}
 *
 * ${FLOW3-model-description}
 */

use TYPO3\FLOW3\Annotations as FLOW3;

/**
 * @FLOW3\Scope("prototype")
 * @FLOW3\Entity
 */
class ${NAME} {

	/**
	 * @identity
	 * @var integer
	 * @Id
	 * @GeneratedValue
	 */
	protected \$id;

	/**
	 * @param int \$id
	 */
	public function setId(\$id) {
		\$this->id = \$id;
	}

	/**
	 * @return int
	 */
	public function getId() {
		return \$this->id;
	}

}