CoreFiles by mySites.guru
Attribute.php22 lines, 470 bytes, from Joomla_4.0.0-beta6-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta5
md5
c989882af839418f9639060d3deeaa37
sha1
e6546a56e767c2df4edef8b32132573c624022db
sha256
06499bd1a4da2a7a7dae4462d869ceb7be55dd5b4632a760b88b22972426a892
<?php

#[Attribute(Attribute::TARGET_CLASS)]
final class Attribute
{
    const TARGET_CLASS = 1;
    const TARGET_FUNCTION = 2;
    const TARGET_METHOD = 4;
    const TARGET_PROPERTY = 8;
    const TARGET_CLASS_CONSTANT = 16;
    const TARGET_PARAMETER = 32;
    const TARGET_ALL = 63;
    const IS_REPEATABLE = 64;

    /** @var int */
    public $flags;

    public function __construct(int $flags = Attribute::TARGET_ALL)
    {
        $this->flags = $flags;
    }
}

The same content is in 2 releases, Joomla 4.0.0-beta6 to 4.0.0-beta7. See them all, or every version of this file.