Scalr\Model\AbstractEntity::result PHP 메소드

result() 공개 정적인 메소드

Instantiate an object and sets the type of the result
public static result ( integer $resultType ) : AbstractEntity
$resultType integer The type of the result
리턴 AbstractEntity
    public static function result($resultType)
    {
        $entity = new static();
        $resultProp = new \ReflectionProperty(__CLASS__, 'resultType');
        $resultProp->setAccessible(true);
        $resultProp->setValue($entity, $resultType);
        return $entity;
    }