$27 GRAYBYTE WORDPRESS FILE MANAGER $60

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.157
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/php55/usr/share/pear/test/Validator/Symfony/Component/Validator/Tests/Fixtures/

HOME
Current File : /opt/alt/php55/usr/share/pear/test/Validator/Symfony/Component/Validator/Tests/Fixtures//Entity.php
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Validator\Tests\Fixtures;

use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Component\Validator\ExecutionContextInterface;

/**
 * @Symfony\Component\Validator\Tests\Fixtures\ConstraintA
 * @Assert\GroupSequence({"Foo", "Entity"})
 * @Assert\Callback({"Symfony\Component\Validator\Tests\Fixtures\CallbackClass", "callback"})
 */
class Entity extends EntityParent implements EntityInterface
{
    /**
     * @Assert\NotNull
     * @Assert\Range(min=3)
     * @Assert\All({@Assert\NotNull, @Assert\Range(min=3)}),
     * @Assert\All(constraints={@Assert\NotNull, @Assert\Range(min=3)})
     * @Assert\Collection(fields={
     *   "foo" = {@Assert\NotNull, @Assert\Range(min=3)},
     *   "bar" = @Assert\Range(min=5)
     * })
     * @Assert\Choice(choices={"A", "B"}, message="Must be one of %choices%")
     */
    protected $firstName;
    protected $lastName;
    public $reference;
    private $internal;
    public $data = 'Overridden data';

    public function __construct($internal = null)
    {
        $this->internal = $internal;
    }

    public function getInternal()
    {
        return $this->internal.' from getter';
    }

    /**
     * @Assert\NotNull
     */
    public function getLastName()
    {
        return $this->lastName;
    }

    public function getData()
    {
        return 'Overridden data';
    }

    /**
     * @Assert\Callback
     */
    public function validateMe(ExecutionContextInterface $context)
    {
    }

    /**
     * @Assert\Callback
     */
    public static function validateMeStatic($object, ExecutionContextInterface $context)
    {
    }
}


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.54 PM
root / root
0755
CallbackClass.php
0.517 KB
18 Dec 2019 11.24 AM
root / root
0644
ClassConstraint.php
0.456 KB
18 Dec 2019 11.24 AM
root / root
0644
ConstraintA.php
0.628 KB
18 Dec 2019 11.24 AM
root / root
0644
ConstraintAValidator.php
0.916 KB
18 Dec 2019 11.24 AM
root / root
0644
ConstraintB.php
0.504 KB
18 Dec 2019 11.24 AM
root / root
0644
ConstraintC.php
0.61 KB
18 Dec 2019 11.24 AM
root / root
0644
ConstraintWithValue.php
0.63 KB
18 Dec 2019 11.24 AM
root / root
0644
ConstraintWithValueAsDefault.php
0.636 KB
18 Dec 2019 11.24 AM
root / root
0644
Entity.php
1.839 KB
18 Dec 2019 11.24 AM
root / root
0644
EntityInterface.php
0.315 KB
18 Dec 2019 11.24 AM
root / root
0644
EntityParent.php
0.555 KB
18 Dec 2019 11.24 AM
root / root
0644
FailingConstraint.php
0.523 KB
18 Dec 2019 11.24 AM
root / root
0644
FailingConstraintValidator.php
0.601 KB
18 Dec 2019 11.24 AM
root / root
0644
FakeMetadataFactory.php
1.409 KB
18 Dec 2019 11.24 AM
root / root
0644
FilesLoader.php
0.891 KB
18 Dec 2019 11.24 AM
root / root
0644
GroupSequenceProviderEntity.php
0.762 KB
18 Dec 2019 11.24 AM
root / root
0644
InvalidConstraint.php
0.376 KB
18 Dec 2019 11.24 AM
root / root
0644
InvalidConstraintValidator.php
0.322 KB
18 Dec 2019 11.24 AM
root / root
0644
PropertyConstraint.php
0.462 KB
18 Dec 2019 11.24 AM
root / root
0644
Reference.php
0.306 KB
18 Dec 2019 11.24 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF