chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

class CAnnouncementAttachment extends AbstractResource implements ResourceInterface, Stringable

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

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

Missing function doc comment
Open

    public function setSize(int $size): self

Missing function doc comment
Open

    public function setResourceName(string $name): self

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

    #[ORM\ManyToOne(targetEntity: CAnnouncement::class, inversedBy: 'attachments')]

Missing function doc comment
Open

    public function setComment(string $comment): self

Scope keyword "static" must be followed by a single space
Open

    public function setAnnouncement(?CAnnouncement $announcement): static

Missing function doc comment
Open

    public function __toString(): string

Missing function doc comment
Open

    public function getResourceName(): string

Missing function doc comment
Open

    public function __construct()

Missing function doc comment
Open

    public function getIid(): ?int

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

    #[ORM\GeneratedValue]

Missing function doc comment
Open

    public function setAnnouncement(?CAnnouncement $announcement): static

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

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

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\Column(name: 'filename', type: 'string', length: 255, nullable: false)]

Missing function doc comment
Open

    public function getAnnouncement(): ?CAnnouncement

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\Column(name: 'iid', type: 'integer')]

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

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

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

    #[ORM\Column(name: 'size', type: 'integer', nullable: false)]

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

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

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

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

Missing function doc comment
Open

    public function setPath(string $path): self

Missing function doc comment
Open

    public function getResourceIdentifier(): int

Missing function doc comment
Open

    public function setFilename(string $filename): self

There are no issues that match your filters.

Category
Status