__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Config\Builder;
/**
* Represents a property when building classes.
*
* @internal
*
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
*/
class Property
{
private string $name;
private string $originalName;
private bool $array = false;
private bool $scalarsAllowed = false;
private ?string $type = null;
private ?string $content = null;
public function __construct(string $originalName, string $name)
{
$this->name = $name;
$this->originalName = $originalName;
}
public function getName(): string
{
return $this->name;
}
public function getOriginalName(): string
{
return $this->originalName;
}
public function setType(string $type): void
{
$this->array = false;
$this->type = $type;
if (str_ends_with($type, '|scalar')) {
$this->scalarsAllowed = true;
$this->type = $type = substr($type, 0, -7);
}
if (str_ends_with($type, '[]')) {
$this->array = true;
$this->type = substr($type, 0, -2);
}
}
public function getType(): ?string
{
return $this->type;
}
public function getContent(): ?string
{
return $this->content;
}
public function setContent(string $content): void
{
$this->content = $content;
}
public function isArray(): bool
{
return $this->array;
}
public function areScalarsAllowed(): bool
{
return $this->scalarsAllowed;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| ClassBuilder.php | File | 4.6 KB | 0644 |
|
| ConfigBuilderGenerator.php | File | 21.1 KB | 0644 |
|
| ConfigBuilderGeneratorInterface.php | File | 668 B | 0644 |
|
| ConfigBuilderInterface.php | File | 702 B | 0644 |
|
| Method.php | File | 635 B | 0644 |
|
| Property.php | File | 1.77 KB | 0644 |
|