Gush\ThirdParty\Gitlab\Model\MergeRequest::castFrom PHP Method

castFrom() public static method

public static castFrom ( Gitlab\Model\MergeRequest $mr )
$mr Gitlab\Model\MergeRequest
    public static function castFrom(Model\MergeRequest $mr)
    {
        $cast = new static($mr->project, $mr->id, $mr->getClient());
        foreach (static::$properties as $property) {
            $cast->{$property} = $mr->{$property};
        }
        return $cast;
    }