| Server IP : 193.146.211.90 / Your IP : 10.85.6.55 Web Server : Apache System : Linux wordpress-gti-69dcdb54f7-n4wdq 6.11.8-arch1-2 #1 SMP PREEMPT_DYNAMIC Fri, 15 Nov 2024 15:35:07 +0000 x86_64 User : 1001 ( 1001) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /bitnami/wordpress/wp-content/plugins/presto-player/vendor/level-2/dice/tests/TestData/ |
Upload File : |
<?php
/* @description Dice - A minimal Dependency Injection Container for PHP *
* @author Tom Butler tom@r.je *
* @copyright 2012-2018 Tom Butler <tom@r.je> | https:// r.je/dice.html *
* @license http:// www.opensource.org/licenses/bsd-license.php BSD License *
* @version 3.0 */
class TestCall {
public $isCalled = false;
public function callMe() {
$this->isCalled = true;
}
}
class TestCall2 {
public $foo;
public $bar;
public function callMe($foo, $bar) {
$this->foo = $foo;
$this->bar = $bar;
}
}
class TestCall3 {
public $a;
public function callMe(A $a) {
$this->a = $a;
return 'callMe called';
}
}
class TestCallImmutable {
public $a;
public $b;
public function call1($a) {
$new = clone $this;
$new->a = $a;
return $new;
}
public function call2($b) {
$new = clone $this;
$new->b = $b;
return $new;
}
}
class TestCallVariadic {
public $data;
public function callMe(...$data) {
$this->data = $data;
}
}