Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php declare(strict_types=1); namespace Doctrine\Tests\Models\DDC117; use Doctrine\Com..

Decoded Output download

<?php

declare(strict_types=1);

namespace Doctrine\Tests\Models\DDC117;

use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\JoinColumn;
use Doctrine\ORM\Mapping\ManyToMany;
use Doctrine\ORM\Mapping\ManyToOne;
use Doctrine\ORM\Mapping\OneToMany;

#[Entity]
class DDC117Translation
{
    /** @var Collection<int, DDC117Editor> */
    #[ManyToMany(targetEntity: 'DDC117Editor', mappedBy: 'reviewingTranslations')]
    public $reviewedByEditors;

    /** @var Collection<int, DDC117Editor> */
    #[OneToMany(targetEntity: 'DDC117Editor', mappedBy: 'lastTranslation')]
    public $lastTranslatedBy;

    public function __construct(
        /** @var DDC117Article */
        #[Id]
        #[ManyToOne(targetEntity: 'DDC117Article', inversedBy: 'translations')]
        #[JoinColumn(name: 'article_id', referencedColumnName: 'article_id')]
        private $article,
        #[Id]
        #[Column(type: 'string', length: 255)]
        private string $language,
        #[Column(type: 'string', length: 255)]
        private string $title,
    ) {
        $this->reviewedByEditors = new ArrayCollection();
        $this->lastTranslatedBy  = new ArrayCollection();
    }

    public function getArticleId(): int
    {
        return $this->article->id();
    }

    public function getLanguage(): string
    {
        return $this->language;
    }

    public function getLastTranslatedBy(): Collection
    {
        return $this->lastTranslatedBy;
    }

    public function getReviewedByEditors(): Collection
    {
        return $this->reviewedByEditors;
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

declare(strict_types=1);

namespace Doctrine\Tests\Models\DDC117;

use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\JoinColumn;
use Doctrine\ORM\Mapping\ManyToMany;
use Doctrine\ORM\Mapping\ManyToOne;
use Doctrine\ORM\Mapping\OneToMany;

#[Entity]
class DDC117Translation
{
    /** @var Collection<int, DDC117Editor> */
    #[ManyToMany(targetEntity: 'DDC117Editor', mappedBy: 'reviewingTranslations')]
    public $reviewedByEditors;

    /** @var Collection<int, DDC117Editor> */
    #[OneToMany(targetEntity: 'DDC117Editor', mappedBy: 'lastTranslation')]
    public $lastTranslatedBy;

    public function __construct(
        /** @var DDC117Article */
        #[Id]
        #[ManyToOne(targetEntity: 'DDC117Article', inversedBy: 'translations')]
        #[JoinColumn(name: 'article_id', referencedColumnName: 'article_id')]
        private $article,
        #[Id]
        #[Column(type: 'string', length: 255)]
        private string $language,
        #[Column(type: 'string', length: 255)]
        private string $title,
    ) {
        $this->reviewedByEditors = new ArrayCollection();
        $this->lastTranslatedBy  = new ArrayCollection();
    }

    public function getArticleId(): int
    {
        return $this->article->id();
    }

    public function getLanguage(): string
    {
        return $this->language;
    }

    public function getLastTranslatedBy(): Collection
    {
        return $this->lastTranslatedBy;
    }

    public function getReviewedByEditors(): Collection
    {
        return $this->reviewedByEditors;
    }
}

Function Calls

None

Variables

None

Stats

MD5 2a6553e845a42c807ebb5f4490ba3e89
Eval Count 0
Decode Time 95 ms