chamilo/chamilo-lms

View on GitHub
src/CourseBundle/Entity/CQuizQuestionCategory.php

Summary

Maintainability
A
0 mins
Test Coverage

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\Id]

Missing function doc comment
Open

    public function __toString(): string

Missing function doc comment
Open

    public function setTitle(string $title): self

Missing function doc comment
Open

    public function getResourceName(): string

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

#[ORM\Entity(repositoryClass: CQuizQuestionCategoryRepository::class)]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\GeneratedValue]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\ManyToMany(targetEntity: CQuizQuestion::class, mappedBy: 'categories')]

Missing function doc comment
Open

    public function getResourceIdentifier(): int|Uuid

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\Column(name: 'iid', type: 'integer')]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\Column(name: 'title', type: 'string', length: 255, nullable: false)]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\Column(name: 'description', type: 'text', nullable: true)]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

#[ORM\Table(name: 'c_quiz_question_category')]

Missing function doc comment
Open

    public function removeQuestion(CQuizQuestion $question): void

Missing function doc comment
Open

    public function getTitle(): string

You must use "/**" style comments for a class comment
Open

class CQuizQuestionCategory extends AbstractResource implements ResourceInterface, ResourceShowCourseResourcesInSessionInterface, Stringable

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[Assert\NotBlank]

Add a single space around assignment operators
Open

declare(strict_types=1);

Missing function doc comment
Open

    public function __construct()

Missing function doc comment
Open

    public function getIid(): ?int

Missing function doc comment
Open

    public function setDescription(string $description): self

Missing function doc comment
Open

    public function setResourceName(string $name): self

Missing function doc comment
Open

    public function setQuestions(Collection $questions): self

Missing function doc comment
Open

    public function addQuestion(CQuizQuestion $question): void

There are no issues that match your filters.

Category
Status