public function jsonSerialize()
    {
        $jsonArray = $this->getArrayCopy();
        unset($jsonArray['inputFilter']);
        unset($jsonArray['__initializer__']);
        unset($jsonArray['__cloner__']);
        unset($jsonArray['__isInitialized__']);
        unset($jsonArray['game']);
        unset($jsonArray['cards']);
        unset($jsonArray['distribution']);
        unset($jsonArray['createdAt']);
        unset($jsonArray['updatedAt']);

        return $jsonArray;
    }
public function jsonSerialize()
    {
        $jsonArray = $this->getArrayCopy();
        unset($jsonArray['inputFilter']);
        unset($jsonArray['__initializer__']);
        unset($jsonArray['__cloner__']);
        unset($jsonArray['__isInitialized__']);
        unset($jsonArray['game']);
        unset($jsonArray['cards']);
        unset($jsonArray['distribution']);
        unset($jsonArray['createdAt']);
        unset($jsonArray['updatedAt']);

        return $jsonArray;
    }
public function jsonSerialize ( ) { $ jsonArray = $ this -> getArrayCopy ( ) ; unset ( $ jsonArray [ 'inputFilter' ] ) ; unset ( $ jsonArray [ '__initializer__' ] ) ; unset ( $ jsonArray [ '__cloner__' ] ) ; unset ( $ jsonArray [ '__isInitialized__' ] ) ; unset ( $ jsonArray [ 'game' ] ) ; unset ( $ jsonArray [ 'cards' ] ) ; unset ( $ jsonArray [ 'distribution' ] ) ; unset ( $ jsonArray [ 'createdAt' ] ) ; unset ( $ jsonArray [ 'updatedAt' ] ) ; return $ jsonArray ; }
Convert the object to json.

@return array
Convert the object to json .