Mercurial > hg > isophonics-drupal-site
comparison vendor/phpunit/phpunit-mock-objects/src/Invocation/ObjectInvocation.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
1 <?php | |
2 /* | |
3 * This file is part of the phpunit-mock-objects package. | |
4 * | |
5 * (c) Sebastian Bergmann <sebastian@phpunit.de> | |
6 * | |
7 * For the full copyright and license information, please view the LICENSE | |
8 * file that was distributed with this source code. | |
9 */ | |
10 namespace PHPUnit\Framework\MockObject\Invocation; | |
11 | |
12 /** | |
13 * Represents a non-static invocation. | |
14 */ | |
15 class ObjectInvocation extends StaticInvocation | |
16 { | |
17 /** | |
18 * @var object | |
19 */ | |
20 private $object; | |
21 | |
22 /** | |
23 * @param string $className | |
24 * @param string $methodName | |
25 * @param array $parameters | |
26 * @param string $returnType | |
27 * @param object $object | |
28 * @param bool $cloneObjects | |
29 */ | |
30 public function __construct($className, $methodName, array $parameters, $returnType, $object, $cloneObjects = false) | |
31 { | |
32 parent::__construct($className, $methodName, $parameters, $returnType, $cloneObjects); | |
33 | |
34 $this->object = $object; | |
35 } | |
36 | |
37 public function getObject() | |
38 { | |
39 return $this->object; | |
40 } | |
41 } |