Permalink
Browse files

[RED] Create River entity

  • Loading branch information...
gajdaw committed Jan 3, 2015
1 parent de1d51e commit 50af1f103573500ad560f2d814f5f9ad571228b9
Showing with 94 additions and 0 deletions.
  1. +94 −0 src/AppBundle/Entity/River.php
@@ -0,0 +1,94 @@
<?php
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* River
*
* @ORM\Table()
* @ORM\Entity
*/
class River
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="name", type="string", length=255)
*/
private $name;
/**
* @var integer
*
* @ORM\Column(name="length", type="integer")
*/
private $length;
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set name
*
* @param string $name
* @return River
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Get name
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Set length
*
* @param integer $length
* @return River
*/
public function setLength($length)
{
$this->length = $length;
return $this;
}
/**
* Get length
*
* @return integer
*/
public function getLength()
{
return $this->length;
}
}

0 comments on commit 50af1f1

Please sign in to comment.