php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay

| files >> /var/www/html/img_galeri/2r1asasas/root/php-7.1.11/Zend/tests/traits/ |
| files >> //var/www/html/img_galeri/2r1asasas/root/php-7.1.11/Zend/tests/traits/flattening001.phpt |
--TEST--
Methods using object properties
--FILE--
<?php
error_reporting(E_ALL);
trait T1 {
public function getText() {
return $this->text;
}
}
trait T2 {
public function setTextT2($val) {
$this->text = $val;
}
}
class TraitsTest {
use T1;
use T2;
private $text = 'test';
public function setText($val) {
$this->text = $val;
}
}
$o = new TraitsTest();
var_dump($o->getText());
$o->setText('foo');
var_dump($o->getText());
$o->setText('bar');
var_dump($o->getText());
?>
--EXPECTF--
string(4) "test"
string(3) "foo"
string(3) "bar"
y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`