Home
last modified time | relevance | path

Searched refs:argument (Results 76 – 100 of 219) sorted by path

123456789

/plugin/findologicxmlexport/vendor/hoa/stream/IStream/
H A DIn.php107 * @param mixed $argument Argument (because the behavior is very
111 public function readArray($argument = null); argument
/plugin/findologicxmlexport/vendor/hoa/stream/
H A DREADME.md256 argument of the default `Hoa\Stream\Stream` constructor; `true` to
265 Passing `null` as a second argument means: No context. Note that we
/plugin/findologicxmlexport/vendor/jms/serializer/
H A DCHANGELOG.md95 - NullAwareVisitorInterface::isNull second argument [\#823](https://github.com/schmittjoh/serialize…
676 - Warning: Invalid argument supplied for foreach\(\) on getCurrentPath method [\#668](https://githu…
811 - Fix for a broken test: a missing \(incorrectly positioned\) argument [\#577](https://github.com/s…
978 - Document the handler $context argument [\#116](https://github.com/schmittjoh/serializer/pull/116)…
/plugin/findologicxmlexport/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/
H A DMethod.php139 $argument = explode(' ', self::stripRestArg(trim($argument)), 2);
147 $argument[1] = self::stripRestArg($argument[1]);
201 $arguments[] = $argument['type'] . ' $' . $argument['name'];
213 foreach ($arguments as &$argument) {
214 if (is_string($argument)) {
215 $argument = [ 'name' => $argument ];
218 if (! isset($argument['type'])) {
222 $keys = array_keys($argument);
236 if (strpos($argument, '...') === 0) {
237 $argument = trim(substr($argument, 3));
[all …]
/plugin/findologicxmlexport/vendor/phpdocumentor/type-resolver/
H A DREADME.md153 class as second argument and the Resolvers will take this into account when resolving partial names.
/plugin/findologicxmlexport/vendor/phpspec/prophecy/
H A DCHANGES.md90 * Enhance exception for invalid argument to ThrowPromise (thanks @Tobion)
102 * Fixed bug in closure-based argument tokens (#181)
110 * Add ability to specify which argument is returned in willReturnArgument (thanks @coderbyheart)
156 …* Added a clss patch for ReflectionClass::newInstance to make its argument optional consistently (…
H A DREADME.md157 argument - `'123'` to always return `'value'`. But that's only for this
217 like simple method arguments, in reality they are not. They are argument token
225 Those argument tokens are simple PHP classes, that implement
240 - `ExactValueToken` or `Argument::exact($value)` - checks that the argument matches a specific value
241 - `TypeToken` or `Argument::type($typeOrClass)` - checks that the argument matches a specific type …
243 - `ObjectStateToken` or `Argument::which($method, $value)` - checks that the argument method returns
245 - `CallbackToken` or `Argument::that(callback)` - checks that the argument matches a custom callback
246 - `AnyValueToken` or `Argument::any()` - matches any argument
252 So, let's refactor our initial `{set,get}Name()` logic with argument tokens:
275 That's it. Now our `{set,get}Name()` prophecy will work with any string argument provided to it.
[all …]
/plugin/findologicxmlexport/vendor/phpspec/prophecy/src/Prophecy/Argument/
H A DArgumentsWildcard.php34 foreach ($arguments as $argument) {
35 if (!$argument instanceof Token\TokenInterface) {
36 $argument = new Token\ExactValueToken($argument);
39 $this->tokens[] = $argument;
59 $argument = isset($arguments[$i]) ? $arguments[$i] : null;
60 if (1 >= $score = $token->scoreArgument($argument)) {
/plugin/findologicxmlexport/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/
H A DAnyValueToken.php28 public function scoreArgument($argument) argument
H A DAnyValuesToken.php28 public function scoreArgument($argument) argument
H A DApproximateValueToken.php33 public function scoreArgument($argument) argument
35 … return round($argument, $this->precision) === round($this->value, $this->precision) ? 10 : false;
H A DArrayCountToken.php39 public function scoreArgument($argument) argument
41 return $this->isCountable($argument) && $this->hasProperCount($argument) ? 6 : false;
70 private function isCountable($argument) argument
72 return (is_array($argument) || $argument instanceof \Countable);
82 private function hasProperCount($argument) argument
84 return $this->count === count($argument);
H A DArrayEntryToken.php47 public function scoreArgument($argument) argument
49 if ($argument instanceof \Traversable) {
50 $argument = iterator_to_array($argument);
53 if ($argument instanceof \ArrayAccess) {
54 $argument = $this->convertArrayAccessToEntry($argument);
57 if (!is_array($argument) || empty($argument)) {
61 $keyScores = array_map(array($this->key,'scoreArgument'), array_keys($argument));
62 $valueScores = array_map(array($this->value,'scoreArgument'), $argument);
H A DArrayEveryEntryToken.php41 public function scoreArgument($argument) argument
43 if (!$argument instanceof \Traversable && !is_array($argument)) {
48 foreach ($argument as $key => $argumentEntry) {
H A DCallbackToken.php51 public function scoreArgument($argument) argument
53 return call_user_func($this->callback, $argument) ? 7 : false;
H A DExactValueToken.php52 public function scoreArgument($argument) argument
54 if (is_object($argument) && is_object($this->value)) {
56 $argument, $this->value
60 $comparator->assertEquals($argument, $this->value);
66 if (is_object($argument) xor is_object($this->value)) {
67 if (is_object($argument) && !method_exists($argument, '__toString')) {
74 } elseif (is_numeric($argument) && is_numeric($this->value)) {
76 } elseif (gettype($argument) !== gettype($this->value)) {
80 return $argument == $this->value ? 10 : false;
H A DIdenticalValueToken.php46 public function scoreArgument($argument) argument
48 return $argument === $this->value ? 11 : false;
H A DLogicalAndToken.php28 foreach ($arguments as $argument) {
29 if (!$argument instanceof TokenInterface) {
30 $argument = new ExactValueToken($argument);
32 $this->tokens[] = $argument;
43 public function scoreArgument($argument) argument
51 $score = $token->scoreArgument($argument);
H A DLogicalNotToken.php39 public function scoreArgument($argument) argument
41 return false === $this->token->scoreArgument($argument) ? 4 : false;
H A DObjectStateToken.php54 * @param mixed $argument
58 public function scoreArgument($argument) argument
60 if (is_object($argument) && method_exists($argument, $this->name)) {
61 $actual = call_user_func(array($argument, $this->name));
75 if (is_object($argument) && property_exists($argument, $this->name)) {
76 return $argument->{$this->name} === $this->value ? 8 : false;
H A DStringContainsToken.php33 public function scoreArgument($argument) argument
35 return is_string($argument) && strpos($argument, $this->value) !== false ? 6 : false;
H A DTokenInterface.php28 public function scoreArgument($argument); argument
H A DTypeToken.php47 public function scoreArgument($argument) argument
51 return call_user_func($checker, $argument) ? 5 : false;
54 return $argument instanceof $this->type ? 5 : false;
/plugin/findologicxmlexport/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/
H A DDisableConstructorPatch.php51 foreach ($constructor->getArguments() as $argument) {
52 $argument->setDefault(null);
H A DReflectionClassNewInstancePatch.php43 foreach ($node->getMethod('newInstance')->getArguments() as $argument) {
44 $argument->setDefault(null);

123456789