Home
last modified time | relevance | path

Searched refs:getProperty (Results 1 – 25 of 78) sorted by relevance

1234

/php-src/ext/reflection/tests/
H A DReflectionClass_getProperty_002.phpt2 ReflectionClass::getProperty() - error cases
15 var_dump($rc->getProperty());
20 var_dump($rc->getProperty("a", "a"));
25 var_dump($rc->getProperty(null));
30 var_dump($rc->getProperty(1));
35 var_dump($rc->getProperty(1.5));
40 var_dump($rc->getProperty(true));
45 var_dump($rc->getProperty(array(1,2,3)));
50 var_dump($rc->getProperty(new C));
57 ReflectionClass::getProperty() expects exactly 1 argument, 0 given
[all …]
H A Dbug45139.phpt23 $rp = $rc->getProperty('foo');
27 $rp = $rc->getProperty('foo');
31 $rp = $rc->getProperty('bar');
35 $rp = $rc->getProperty('bar');
39 $rp = $rc->getProperty('baz');
43 $rp = $rc->getProperty('baz');
47 $rp = $rc->getProperty('quux');
H A Dbug39067.phpt19 var_dump($rc->getProperty('x')->getDeclaringClass()->getName());
22 var_dump($rc->getProperty('x')->getDeclaringClass()->getName());
25 var_dump($rc->getProperty('x')->getDeclaringClass()->getName());
36 var_dump($rc->getProperty('x')->getDeclaringClass()->getName());
H A Dbug53366.phpt2 Bug #53366 (Reflection doesn't get dynamic property value from getProperty())
15 var_dump($reflect->getProperty('id'));
16 var_dump($reflect->getProperty('id')->getValue($myClass));
H A Dbug79062.phpt21 $s1 = $ref->getProperty('s1');
24 $s2 = $ref->getProperty('s2');
27 $s3 = $ref->getProperty('s3');
H A Dbug39001.phpt19 var_dump($r->getProperty('publicVar')->getDeclaringClass()->getName());
20 var_dump($r->getProperty('protectedVar')->getDeclaringClass()->getName());
H A Dbug78774.phpt12 $rp = $rc->getProperty('prop');
14 $rp2 = $rc->getProperty('prop2');
H A DReflectionParameter_isDefault.phpt19 var_dump($ro->getProperty('defprop')->isDefault());
20 var_dump($ro->getProperty('myprop')->isDefault());
H A Dbug49719.phpt20 var_dump($ref->getProperty('a'));
34 $prop = $b2->getProperty('a');
/php-src/tests/classes/
H A Dautoload_016.phpt2 Ensure ReflectionClass::getProperty() triggers autoload
13 $rc->getProperty("UndefC::p");
/php-src/Zend/tests/lazy_objects/rfc/
H A Drfc_example_004.phpt34 $reflector->getProperty('id')->skipLazyInitialization($post);
35 $reflector->getProperty('id')->setValue($post, 123);
38 $reflector->getProperty('id')->setRawValueWithoutLazyInitialization($post, 123);
H A Drfc_example_005.phpt33 $reflector->getProperty('id')->skipLazyInitialization($post);
34 $reflector->getProperty('id')->setValue($post, 123);
37 $reflector->getProperty('id')->setRawValueWithoutLazyInitialization($post, 123);
H A Drfc_example_011.phpt36 $reflector->getProperty('name')->setValue($entity, $data['name']);
37 $reflector->getProperty('email')->setValue($entity, $data['email']);
41 $reflector->getProperty('id')->setRawValueWithoutLazyInitialization($entity, $id);
/php-src/Zend/tests/lazy_objects/
H A Dwrite_skipped_no_initialize.phpt20 $reflector->getProperty('a')->skipLazyInitialization($obj);
21 $reflector->getProperty('b')->skipLazyInitialization($obj);
22 $reflector->getProperty('c')->skipLazyInitialization($obj);
H A Dunset_skipped_no_initialize.phpt22 $reflector->getProperty('a')->skipLazyInitialization($obj);
23 $reflector->getProperty('b')->skipLazyInitialization($obj);
24 $reflector->getProperty('c')->skipLazyInitialization($obj);
H A Drealize.phpt32 $reflector->getProperty('a')->setRawValueWithoutLazyInitialization($obj, 'a1');
36 $reflector->getProperty('a')->setRawValueWithoutLazyInitialization($obj, 'a2');
41 $reflector->getProperty('a')->setRawValueWithoutLazyInitialization($obj, new stdClass);
47 //$reflector->getProperty('b')->setRawValueWithoutLazyInitialization($obj, 'dynamic B');
H A Drealize_skipped.phpt32 $reflector->getProperty('a')->skipLazyInitialization($obj);
36 $reflector->getProperty('a')->skipLazyInitialization($obj);
41 $reflector->getProperty('xxx')->skipLazyInitialization($obj);
48 $reflector->getProperty('b')->skipLazyInitialization($obj);
H A Dfetch_skipped_prop_does_not_initialize.phpt22 $reflector->getProperty('a')->skipLazyInitialization($obj);
23 $reflector->getProperty('b')->skipLazyInitialization($obj);
24 $reflector->getProperty('c')->skipLazyInitialization($obj);
H A Dfetch_op_skipped_prop_does_not_initialize.phpt20 $reflector->getProperty('a')->skipLazyInitialization($obj);
21 $reflector->getProperty('b')->skipLazyInitialization($obj);
22 $reflector->getProperty('c')->skipLazyInitialization($obj);
H A DskipLazyInitialization_realize.phpt15 $reflector->getProperty('a')->skipLazyInitialization($obj);
16 $reflector->getProperty('b')->skipLazyInitialization($obj);
H A DskipLazyInitialization_skips_non_lazy_prop.phpt15 $reflector->getProperty('a')->skipLazyInitialization($obj);
19 $reflector->getProperty('a')->skipLazyInitialization($obj);
H A DsetRawValueWithoutLazyInitialization_realize.phpt15 $reflector->getProperty('a')->setRawValueWithoutLazyInitialization($obj, 'test');
16 $reflector->getProperty('b')->setRawValueWithoutLazyInitialization($obj, 'test');
H A Dgc_005.phpt27 $reflector->getProperty('value')->setRawValueWithoutLazyInitialization($obj, $obj);
48 $reflector->getProperty('value')->setRawValueWithoutLazyInitialization($obj, $obj);
/php-src/ext/reflection/tests/types/
H A Dmixed_type.phpt17 var_dump($object->getProperty("a")->getType()->getName());
21 var_dump((string) $object->getProperty("a")->getType());
/php-src/Zend/tests/attributes/
H A D011_inheritance.phpt57 print_r(array_map(fn ($a) => $a->getName(), $ref->getProperty('a')->getAttributes()));
60 print_r(array_map(fn ($a) => $a->getName(), $ref->getProperty('a')->getAttributes()));
63 print_r(array_map(fn ($a) => $a->getName(), $ref->getProperty('a')->getAttributes()));

Completed in 20 milliseconds

1234