You are here

private function PHPUnit_Framework_MockObject_Generator::hasType in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator.php \PHPUnit_Framework_MockObject_Generator::hasType()

@since Method available since Release 2.3.4

Parameters

ReflectionParameter $parameter:

Return value

bool

1 call to PHPUnit_Framework_MockObject_Generator::hasType()
PHPUnit_Framework_MockObject_Generator::getMethodParameters in vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator.php
Returns the parameters of a function or method.

File

vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator.php, line 1097

Class

PHPUnit_Framework_MockObject_Generator
Mock Object Code Generator

Code

private function hasType(ReflectionParameter $parameter) {
  return method_exists('ReflectionParameter', 'hasType') && $parameter
    ->hasType();
}