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\Cache; use Doctrine\ORM\..

Decoded Output download

<?php

declare(strict_types=1);

namespace Doctrine\Tests\Models\Cache;

use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\GeneratedValue;
use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\JoinColumn;
use Doctrine\ORM\Mapping\OneToOne;
use Doctrine\ORM\Mapping\Table;

#[Table('cache_client_address')]
#[Entity]
class Address
{
    /** @var int */
    #[Id]
    #[GeneratedValue]
    #[Column(type: 'integer')]
    public $id;

    /** @var Person */
    #[JoinColumn(name: 'person_id', referencedColumnName: 'id')]
    #[OneToOne(targetEntity: 'Person', inversedBy: 'address')]
    public $person;

    public function __construct(
        #[Column]
        public string $location,
    ) {
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

declare(strict_types=1);

namespace Doctrine\Tests\Models\Cache;

use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\GeneratedValue;
use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\JoinColumn;
use Doctrine\ORM\Mapping\OneToOne;
use Doctrine\ORM\Mapping\Table;

#[Table('cache_client_address')]
#[Entity]
class Address
{
    /** @var int */
    #[Id]
    #[GeneratedValue]
    #[Column(type: 'integer')]
    public $id;

    /** @var Person */
    #[JoinColumn(name: 'person_id', referencedColumnName: 'id')]
    #[OneToOne(targetEntity: 'Person', inversedBy: 'address')]
    public $person;

    public function __construct(
        #[Column]
        public string $location,
    ) {
    }
}

Function Calls

None

Variables

None

Stats

MD5 d03fecd0908954e53a924cc3d0baba47
Eval Count 0
Decode Time 91 ms