Home
last modified time | relevance | path

Searched refs:class (Results 126 – 150 of 4127) sorted by relevance

12345678910>>...166

/php-src/ext/reflection/tests/
H A DReflectionClass_getProperty_003.phpt8 class A {
34 class X {
98 ["class"]=>
106 ["class"]=>
116 ["class"]=>
124 ["class"]=>
134 ["class"]=>
142 ["class"]=>
150 ["class"]=>
160 ["class"]=>
[all …]
H A DReflectionClass_getProperty_004.phpt8 class A {
34 class X {
102 ["class"]=>
110 ["class"]=>
120 ["class"]=>
128 ["class"]=>
138 ["class"]=>
146 ["class"]=>
154 ["class"]=>
164 ["class"]=>
[all …]
H A DReflectionEnum_getCases.phpt18 var_dump((new ReflectionEnum(Enum_::class))->getCases());
19 var_dump((new ReflectionEnum(IntEnum::class))->getCases());
28 ["class"]=>
35 ["class"]=>
44 ["class"]=>
51 ["class"]=>
H A Dreadonly_class.phpt2 Readonly class reflection
6 class Foo {
9 readonly class Bar {
12 $foo = new ReflectionClass(Foo::class);
16 $bar = new ReflectionClass(Bar::class);
H A DReflectionClassConstant_getValue_typed.phpt2 Test variations of getting typed class constant values
7 class A {
10 class B {
16 $rc = new ReflectionClassConstant(A::class, 'CONST1');
20 $rc = new ReflectionClassConstant(B::class, 'CONST1');
38 Cannot assign stdClass to class constant B::CONST1 of type array
39 Cannot assign stdClass to class constant B::CONST1 of type array
H A DReflectionMethod_defaultArg.phpt5 Abstract class F {
6 private function bar($a = self::class) {}
11 private function bar($a = self::class) {}
15 class B {
35 Parameter #0 [ <optional> $a = self::class ]
42 Parameter #0 [ <optional> $a = self::class ]
H A DReflectionMethod_getClosureThis.phpt5 class StaticExample
9 var_dump( "Static Example class, Hello World!" );
13 class Example
18 var_dump( "Example class, bar: " . $this->bar );
23 $class = new ReflectionClass( 'Example' );
33 $method = $class->getMethod( 'foo' );
H A DReflectionClass_newInstanceArgs_001.phpt9 class B {
11 echo "In constructor of class B with args $a, $b\n";
15 class C {
17 echo "In constructor of class C\n";
21 class D {
23 echo "In constructor of class D\n";
26 class E {
69 In constructor of class B with args x, 123
72 Access to non-public constructor of class C
73 Access to non-public constructor of class D
/php-src/Zend/tests/attributes/
H A D009_doctrine_annotations_example.phpt8 class Entity extends Annotation {}
9 class Id extends Annotation {}
11 class GeneratedValue extends Annotation {}
12 class JoinTable extends Annotation {}
13 class ManyToMany extends Annotation {}
20 class Email extends Annotation {}
21 class Range extends Annotation {}
30 class User
66 #[ORM\ManyToMany(Phonenumber::class)]
73 $class = new ReflectionClass(User::class);
[all …]
H A D006_filter.phpt7 $attr = $ref->getAttributes(A3::class);
12 $attr = $ref->getAttributes(A2::class);
17 $attr = $ref->getAttributes(A2::class);
24 class A1 implements Base { }
25 class A2 implements Base { }
26 class A3 extends A2 { }
34 $attr = $ref->getAttributes(A1::class, \ReflectionAttribute::IS_INSTANCEOF);
39 $attr = $ref->getAttributes(Base::class, \ReflectionAttribute::IS_INSTANCEOF);
44 $attr = $ref->getAttributes(A2::class, \ReflectionAttribute::IS_INSTANCEOF);
49 $attr = $ref->getAttributes(Base::class, \ReflectionAttribute::IS_INSTANCEOF);
[all …]
H A Dgh8421.phpt6 class FunctionAttribute
16 class ClosureHolder
43 var_dump((new ReflectionFunction($globalClosure))->getAttributes(FunctionAttribute::class)[0]->newI…
44 var_dump((new ReflectionFunction($globalStaticClosure))->getAttributes(FunctionAttribute::class)[0]…
45 …:getClosureDefinedInScopeStatically()))->getAttributes(FunctionAttribute::class)[0]->newInstance()…
46 …aticClosureDefinedInScopeStatically()))->getAttributes(FunctionAttribute::class)[0]->newInstance()…
50 …n($holder->getClosureDefinedInScope()))->getAttributes(FunctionAttribute::class)[0]->newInstance()…
51 …der->getStaticClosureDefinedInScope()))->getAttributes(FunctionAttribute::class)[0]->newInstance()…
/php-src/Zend/tests/try/
H A Dexceptions.inc3 class Exception1 extends Exception {}
4 class Exception2 extends Exception {}
5 class Exception3 extends Exception {}
6 class Exception4 extends Exception {}
/php-src/Zend/tests/
H A Dtemporary_cleaning_013.phpt7 var_dump(new class {
14 var_dump([0] + [new class {
34 $foo = new class {
44 $foo = new class {
148 var_dump((new class {
156 var_dump((new class {
200 $foo = new class {
207 $foo = [new class {
221 $foo = new class {
239 $foo = new class {
[all …]
H A Dbug66719.phpt6 class A
13 class B extends A
21 class C
25 call_user_func(array(A::class, 'who'));
26 call_user_func(array(B::class, 'parent::who'));
31 call_user_func(array(A::class, 'who'));
32 call_user_func(array(B::class, 'parent::who'));
H A Dbug71248.phpt5 class Hint1 { }
6 class Hint2 { }
8 abstract class Base {
16 class Foo extends Base implements Iface {
20 abstract class Bar extends Base {
/php-src/Zend/tests/type_declarations/variance/
H A Dclass_order_autoload_error2.phpt7 spl_autoload_register(function($class) {
8 if ($class === 'A') {
9 class A {
12 } else if ($class == 'B') {
13 class B extends A {
17 class C extends B {
/php-src/ext/spl/tests/
H A Dspl_autoload_bug48541.phpt6 class X {
8 return function($class) {
14 $a = function ($class) {
19 $b = function ($class) {
20 eval('class ' . $class . '{function __construct(){echo "foo\n";}}');
/php-src/Zend/tests/attributes/override/
H A Dgh12189.phpt2 #[Override] attribute in trait does not check for parent class implementations
6 class A {
22 class B implements I {
26 // Works fine ("copied and pasted into the target class")
27 class C extends A {
35 class D extends A {
/php-src/ext/standard/tests/array/
H A Duasort_object2.phpt9 * simple class,
10 * child class,
11 * empty class &
12 * static class
32 class SimpleClass
43 class EmptyClass
48 class StaticClass
56 // Abstract class
57 abstract class AbstractClass
63 // Child class extending abstract class
[all …]
/php-src/Zend/tests/readonly_classes/
H A Dreadonly_class_inheritance_success.phpt2 Readonly class can extend a readonly class
6 readonly class Foo
10 readonly class Bar extends Foo
/php-src/ext/intl/tests/
H A Dbug75090.phpt2 Bug #75090 Constants of parent IntlCalendar class not inherited
7 class Foo extends IntlCalendar {}
9 $fooRef = new ReflectionClass(Foo::class);
10 $intlGregorianCalendarRef = new ReflectionClass(IntlGregorianCalendar::class);
11 $intlCalendarRef = new ReflectionClass(IntlCalendar::class);
/php-src/tests/classes/
H A Ddestructor_and_references.phpt6 class test1 {public $x;};
7 class test2 {public $x;};
8 class test3 {public $x;};
9 class test4 {public $x;};
20 class once {}
H A Dctor_dtor_inheritance.phpt2 ZE2 A derived class can use the inherited constructor/destructor
9 // - base class constructors/destructors know the instantiated class name
11 class base {
26 class derived extends base {
46 echo "Testing class base\n";
49 echo "Testing class derived\n";
56 Testing class base
67 Testing class derived
/php-src/ext/zend_test/tests/
H A Dobserver_declarations_file_cache.phpt2 Observer: Observe function and class declarations with file_cache_only
16 class A {}
17 class B extends A {}
22 <!-- declared class 'a' -->
23 <!-- declared class 'b' -->
/php-src/Zend/tests/type_declarations/union_types/
H A Danonymous_class.phpt2 Union with anonymous class type
6 $a = new class {
29 class@anonymous(): Argument #1 ($a) must be of type class@anonymous|string, null given, called in %…
30 class@anonymous::test(): Return value must be of type class@anonymous|string, stdClass returned

Completed in 29 milliseconds

12345678910>>...166