src/Constraints/Group.php
public static function fromData(array $data)
    {
        $group = new static(array_map(function ($data) {
            return $data['class']::fromData($data['params']);
        }, $data['constraints']));

        return $group->logicalOperator($data['logicalOperator']);
    }
public static function fromData(array $data)
    {
        $group = new static(array_map(function ($data) {
            return $data['class']::fromData($data['params']);
        }, $data['constraints']));

        return $group->logicalOperator($data['logicalOperator']);
    }
public static function fromData ( array $ data ) { $ group = new static ( array_map ( function ( $ data ) { return $ data [ 'class' ] :: fromData ( $ data [ 'params' ] ) ; } , $ data [ 'constraints' ] ) ) ; return $ group -> logicalOperator ( $ data [ 'logicalOperator' ] ) ; }
Create a new instance from the raw data.

@param  array  $data
@return static
Create a new instance from the raw data .