src/forms/ServerForm.php
public static function fromServer(Server $server): ServerForm
    {
        return new self(array_merge($server->getAttributes(), ['server' => $server->name, 'scenario' => 'update'], [
            'ips' => implode(',', ArrayHelper::getColumn($server->ips, 'ip')),
        ]));
    }
public static function fromServer(Server $server): ServerForm
    {
        return new self(array_merge($server->getAttributes(), ['server' => $server->name, 'scenario' => 'update'], [
            'ips' => implode(',', ArrayHelper::getColumn($server->ips, 'ip')),
        ]));
    }
public static function fromServer ( Server $ server ) : ServerForm { return new self ( array_merge ( $ server -> getAttributes ( ) , [ 'server' => $ server -> name , 'scenario' => 'update' ] , [ 'ips' => implode ( ',' , ArrayHelper :: getColumn ( $ server -> ips , 'ip' ) ) , ] ) ) ; }
Create ServerForm model from Server model.

@param Server $server
@return ServerForm
Create ServerForm model from Server model .