Scalr\Model\AbstractEntity::result PHP Méthode

result() public static méthode

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