Update entities

pull/3768/head
Julio Montoya 5 years ago
parent f0078ef6e5
commit 3cb3e2c3ae
  1. 4
      src/CoreBundle/Entity/GradebookCertificate.php
  2. 60
      src/CoreBundle/Entity/Usergroup.php
  3. 4
      src/CourseBundle/Entity/CQuizQuestionCategory.php

@ -38,12 +38,10 @@ class GradebookCertificate
protected $catId;
/**
* @var User
*
* @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\User", inversedBy="gradeBookCertificates")
* @ORM\JoinColumn(name="user_id",referencedColumnName="id",onDelete="CASCADE")
*/
protected $user;
protected User $user;
/**
* @var float

@ -210,6 +210,66 @@ class Usergroup extends AbstractResource implements ResourceInterface, ResourceI
return $this;
}
/**
* @return string
*/
public function getVisibility(): string
{
return $this->visibility;
}
/**
* @param string $visibility
*
* @return Usergroup
*/
public function setVisibility(string $visibility): Usergroup
{
$this->visibility = $visibility;
return $this;
}
/**
* @return string|null
*/
public function getUrl(): ?string
{
return $this->url;
}
/**
* @param string|null $url
*
* @return Usergroup
*/
public function setUrl(?string $url): Usergroup
{
$this->url = $url;
return $this;
}
/**
* @return string
*/
public function getAuthorId(): string
{
return $this->authorId;
}
/**
* @param string $authorId
*
* @return Usergroup
*/
public function setAuthorId(string $authorId): Usergroup
{
$this->authorId = $authorId;
return $this;
}
public function getPicture(): ?string
{
return $this->picture;

@ -113,12 +113,10 @@ class CQuizQuestionCategory extends AbstractResource implements ResourceInterfac
/**
* Get title.
*
* @return string
*/
public function getTitle()
{
return (string) $this->title;
return $this->title;
}
public function setDescription(string $description): self

Loading…
Cancel
Save