chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

Missing function doc comment
Open

    public function setResourceName(string $name): self

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: 'file', type: 'string', length: 255, nullable: true)]

Missing function doc comment
Open

    public function getSentAt(): DateTime

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

class CStudentPublicationComment extends AbstractResource implements ResourceInterface, Stringable

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

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

Missing function doc comment
Open

    public function setSentAt(DateTime $sentAt): self

Missing function doc comment
Open

    public function getResourceIdentifier(): int|Uuid

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

    #[ORM\ManyToOne(targetEntity: CStudentPublication::class, inversedBy: 'comments')]

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

    #[ORM\Column(name: 'sent_at', type: 'datetime', nullable: false)]

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

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

Missing function doc comment
Open

    public function getComment(): ?string

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

    #[ORM\ManyToOne(targetEntity: User::class)]

Missing function doc comment
Open

    public function setComment(string $comment): self

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

    #[ORM\JoinColumn(name: 'user_id', referencedColumnName: 'id', onDelete: 'CASCADE')]

Missing function doc comment
Open

    public function getUser(): User

Missing function doc comment
Open

    public function setUser(User $user): self

Add a single space around assignment operators
Open

declare(strict_types=1);

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

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

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

    #[ORM\JoinColumn(name: 'work_id', referencedColumnName: 'iid', onDelete: 'CASCADE')]

Missing function doc comment
Open

    public function __toString(): string

Missing function doc comment
Open

    public function setPublication(CStudentPublication $publication): self

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

    #[ORM\Id]

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

    #[ORM\GeneratedValue]

Missing function doc comment
Open

    public function getPublication(): CStudentPublication

Missing function doc comment
Open

    public function getResourceName(): string

Missing function doc comment
Open

    public function getFile(): ?string

Missing function doc comment
Open

    public function __construct()

Missing function doc comment
Open

    public function getIid(): ?int

Missing function doc comment
Open

    public function setFile(string $file): self

There are no issues that match your filters.

Category
Status