public static function create(array $data): \One\Model\Gallery
    {
        $body = self::validateString((string) self::checkData($data, 'body', ''));
        $order = self::validateInteger((int) self::checkData($data, 'order', null));
        $photo = self::validateUrl((string) self::checkData($data, 'photo', ''));
        $source = self::validateUrl((string) self::checkData($data, 'source', ''));
        $lead = self::validateString((string) self::checkData($data, 'lead', ''));
        return self::createGallery($body, $order, $photo, $source, $lead);
    }
public static function create(array $data): \One\Model\Gallery
    {
        $body = self::validateString((string) self::checkData($data, 'body', ''));
        $order = self::validateInteger((int) self::checkData($data, 'order', null));
        $photo = self::validateUrl((string) self::checkData($data, 'photo', ''));
        $source = self::validateUrl((string) self::checkData($data, 'source', ''));
        $lead = self::validateString((string) self::checkData($data, 'lead', ''));
        return self::createGallery($body, $order, $photo, $source, $lead);
    }
public static function create ( array $ data ) : \ One \ Model \ Gallery { $ body = self :: validateString ( ( string ) self :: checkData ( $ data , 'body' , '' ) ) ; $ order = self :: validateInteger ( ( int ) self :: checkData ( $ data , 'order' , null ) ) ; $ photo = self :: validateUrl ( ( string ) self :: checkData ( $ data , 'photo' , '' ) ) ; $ source = self :: validateUrl ( ( string ) self :: checkData ( $ data , 'source' , '' ) ) ; $ lead = self :: validateString ( ( string ) self :: checkData ( $ data , 'lead' , '' ) ) ; return self :: createGallery ( $ body , $ order , $ photo , $ source , $ lead ) ; }
function Create attachment Gallery
function Create attachment Gallery