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\ORM\Mapping\Builder; /** * Embedded ..
Decoded Output download
<?php
declare(strict_types=1);
namespace Doctrine\ORM\Mapping\Builder;
/**
* Embedded Builder
*
* @link www.doctrine-project.com
*/
class EmbeddedBuilder
{
/** @param mixed[] $mapping */
public function __construct(
private readonly ClassMetadataBuilder $builder,
private array $mapping,
) {
}
/**
* Sets the column prefix for all of the embedded columns.
*
* @return $this
*/
public function setColumnPrefix(string $columnPrefix): static
{
$this->mapping['columnPrefix'] = $columnPrefix;
return $this;
}
/**
* Finalizes this embeddable and attach it to the ClassMetadata.
*
* Without this call an EmbeddedBuilder has no effect on the ClassMetadata.
*/
public function build(): ClassMetadataBuilder
{
$cm = $this->builder->getClassMetadata();
$cm->mapEmbedded($this->mapping);
return $this->builder;
}
}
?>
Did this file decode correctly?
Original Code
<?php
declare(strict_types=1);
namespace Doctrine\ORM\Mapping\Builder;
/**
* Embedded Builder
*
* @link www.doctrine-project.com
*/
class EmbeddedBuilder
{
/** @param mixed[] $mapping */
public function __construct(
private readonly ClassMetadataBuilder $builder,
private array $mapping,
) {
}
/**
* Sets the column prefix for all of the embedded columns.
*
* @return $this
*/
public function setColumnPrefix(string $columnPrefix): static
{
$this->mapping['columnPrefix'] = $columnPrefix;
return $this;
}
/**
* Finalizes this embeddable and attach it to the ClassMetadata.
*
* Without this call an EmbeddedBuilder has no effect on the ClassMetadata.
*/
public function build(): ClassMetadataBuilder
{
$cm = $this->builder->getClassMetadata();
$cm->mapEmbedded($this->mapping);
return $this->builder;
}
}
Function Calls
None |
Stats
MD5 | eed749eab712b3bc46a6a8eda1aefa38 |
Eval Count | 0 |
Decode Time | 79 ms |