Elastica\Type\Mapping::__construct PHP Метод

__construct() публичный Метод

Construct Mapping.
public __construct ( Type $type = null, array $properties = [] )
$type Elastica\Type OPTIONAL Type object
$properties array OPTIONAL Properties
    public function __construct(Type $type = null, array $properties = [])
    {
        if ($type) {
            $this->setType($type);
        }
        if (!empty($properties)) {
            $this->setProperties($properties);
        }
    }