PHP 클래스 Prophecy\Argument\Token\ObjectStateToken

저자: Konstantin Kudryashov ([email protected])
상속: implements Prophecy\Argument\Token\TokenInterface
파일 보기 프로젝트 열기: phpspec/prophecy

공개 메소드들

메소드 설명
__construct ( string $methodName, mixed $value, Prophecy\Util\StringUtil $util = null, Prophecy\Comparator\Factory $comparatorFactory = null ) Initializes token.
__toString ( ) : string Returns string representation for token.
isLast ( ) : boolean Returns false.
scoreArgument ( mixed $argument ) : boolean | integer Scores 8 if argument is an object, which method returns expected value.

메소드 상세

__construct() 공개 메소드

Initializes token.
public __construct ( string $methodName, mixed $value, Prophecy\Util\StringUtil $util = null, Prophecy\Comparator\Factory $comparatorFactory = null )
$methodName string
$value mixed Expected return value
$util Prophecy\Util\StringUtil
$comparatorFactory Prophecy\Comparator\Factory

__toString() 공개 메소드

Returns string representation for token.
public __toString ( ) : string
리턴 string

isLast() 공개 메소드

Returns false.
public isLast ( ) : boolean
리턴 boolean

scoreArgument() 공개 메소드

Scores 8 if argument is an object, which method returns expected value.
public scoreArgument ( mixed $argument ) : boolean | integer
$argument mixed
리턴 boolean | integer