src/Constraints/Group.php
public function data()
    {
        return [
            'class' => static::class,
            'params' => [
                'logicalOperator' => $this->logicalOperator,
                'constraints' => $this->constraints->map(function ($constraint) {
                    return $constraint->data();
                })->all(),
            ],
        ];
    }
public function data()
    {
        return [
            'class' => static::class,
            'params' => [
                'logicalOperator' => $this->logicalOperator,
                'constraints' => $this->constraints->map(function ($constraint) {
                    return $constraint->data();
                })->all(),
            ],
        ];
    }
public function data ( ) { return [ 'class' => static :: class , 'params' => [ 'logicalOperator' => $ this -> logicalOperator , 'constraints' => $ this -> constraints -> map ( function ( $ constraint ) { return $ constraint -> data ( ) ; } ) -> all ( ) , ] , ] ; }
Get the JSON-able data of this object.

@return array
Get the JSON - able data of this object .