src/CoreBundle/Entity/UserRelUser.php
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\GeneratedValue]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Assert\NotBlank]
- Exclude checks
Missing function doc comment Open
Open
public function setUser(User $user): self
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Assert\NotNull]
- Exclude checks
Missing function doc comment Open
Open
public function getUser(): User
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Index(columns: ['user_id'], name: 'idx_user_rel_user__user')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Index(columns: ['friend_user_id'], name: 'idx_user_rel_user__friend_user')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\UniqueConstraint(name: 'user_friend_relation', columns: ['user_id', 'friend_user_id', 'relation_type'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\EntityListeners([UserRelUserListener::class])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ApiFilter(
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['user_rel_user:read', 'user_rel_user:write'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Entity]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\JoinColumn(name: 'user_id', referencedColumnName: 'id', nullable: false, onDelete: 'CASCADE')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\JoinColumn(name: 'friend_user_id', referencedColumnName: 'id', nullable: false, onDelete: 'CASCADE')]
- Exclude checks
Missing function doc comment Open
Open
public function __construct()
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'id', type: 'integer')]
- Exclude checks
Missing function doc comment Open
Open
public function getFriend(): User
- Exclude checks
Add a single space around assignment operators Open
Open
declare(strict_types=1);
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[UniqueEntity(
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'friends')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'relation_type', type: 'integer', nullable: false)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Table(name: 'user_rel_user')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'friendsWithMe')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Assert\NotNull]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ApiResource(
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['user_rel_user:read', 'user_rel_user:write'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Index(columns: ['user_id', 'friend_user_id'], name: 'idx_user_rel_user__user_friend_user')]
- Exclude checks
Missing class doc comment Open
Open
class UserRelUser
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['user_rel_user:read', 'user_rel_user:write'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Id]
- Exclude checks
Missing function doc comment Open
Open
public function getRelationType(): ?int
- Exclude checks
Missing function doc comment Open
Open
public function setFriend(User $friend): self
- Exclude checks
Missing function doc comment Open
Open
public function setRelationType(int $relationType): self
- Exclude checks
Missing function doc comment Open
Open
public function getId(): ?int
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const USER_RELATION_TYPE_DELETED = 6;
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 0 Open
Open
)]
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 0 Open
Open
)]
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const USER_RELATION_TYPE_FRIEND_REQUEST = 10;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected User $friend;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function __construct()
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->relationType = self::USER_RELATION_TYPE_FRIEND;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
use TimestampableTypedEntity;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected User $user;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected int $relationType;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getFriend(): User
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const USER_RELATION_TYPE_RRHH = 7;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->user;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->user = $user;
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 0 Open
Open
class UserRelUser
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected ?int $id = null;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->relationType = $relationType;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setUser(User $user): self
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->friend;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const USER_RELATION_TYPE_HRM_REQUEST = 9;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getId(): ?int
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->id;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const USER_UNKNOWN = 0;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const USER_RELATION_TYPE_BOSS = 8;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 0 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const USER_RELATION_TYPE_FRIEND = 3;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getUser(): User
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const USER_RELATION_TYPE_GOODFRIEND = 4;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 0 Open
Open
)]
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
use UserTrait;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setFriend(User $friend): self
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->friend = $friend;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->relationType;
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 0 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setRelationType(int $relationType): self
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getRelationType(): ?int
- Exclude checks