Completed
Push — master ( 2dee47...e09661 )
by Viacheslav
07:08
created

SwaggerSchemaAdapter   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 7
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A convert() 0 4 1
1
<?php
2
3
namespace Swaggest\JsonSchema\Util;
4
5
use Swaggest\JsonSchema\Schema as JsonBasicSchema;
6
use Swaggest\JsonSchema\SwaggerSchema\Schema;
7
8
class SwaggerSchemaAdapter extends JsonBasicSchema
9
{
10
    public static function convert(Schema $schema)
11
    {
12
        return JsonBasicSchema::import(Schema::export($schema));
13
    }
14
}