id; } /** * The name of the namespace. This will be used when displaying the * namespace list. * * @var string $name * * @ORM\Column(type="string", length=50, unique=true, nullable=false) * * @Assert\NotBlank() */ protected $name; /** * Set name * * @param string $name * @return UploadNamespace */ public function setName($name) { // TODO: Check if not null! $this->name = $name; return $this; } /** * Get name * * @return string */ public function getName() { return $this->name; } /** * The slugified name of the namespace. This will be used in URLs * * @var string $slug * * @ORM\Column(type="string", length=50, unique=true, nullable=false) */ protected $slug; /** * Set slug * * @param string $slug * @return UploadNamespace */ public function setSlug($slug) { // TODO: Check if not null! $this->slug = $slug; return $this; } /** * Get slug * * @return string */ public function getSlug() { return $this->slug; } }