public static function convertToSimpleType($object)
    {
        if (!$object instanceof TypeMutabilityInterface) {
            throw new CmisInvalidArgumentException('Given object must be of type TypeMutabilityInterface');
        }

        $result = [];
        $result[JSONConstants::JSON_TYPE_TYPE_MUTABILITY_CREATE] = $object->canCreate();
        $result[JSONConstants::JSON_TYPE_TYPE_MUTABILITY_UPDATE] = $object->canUpdate();
        $result[JSONConstants::JSON_TYPE_TYPE_MUTABILITY_DELETE] = $object->canDelete();

        return $result;
    }
public static function convertToSimpleType($object)
    {
        if (!$object instanceof TypeMutabilityInterface) {
            throw new CmisInvalidArgumentException('Given object must be of type TypeMutabilityInterface');
        }

        $result = [];
        $result[JSONConstants::JSON_TYPE_TYPE_MUTABILITY_CREATE] = $object->canCreate();
        $result[JSONConstants::JSON_TYPE_TYPE_MUTABILITY_UPDATE] = $object->canUpdate();
        $result[JSONConstants::JSON_TYPE_TYPE_MUTABILITY_DELETE] = $object->canDelete();

        return $result;
    }
public static function convertToSimpleType ( $ object ) { if ( ! $ object instanceof TypeMutabilityInterface ) { throw new CmisInvalidArgumentException ( 'Given object must be of type TypeMutabilityInterface' ) ; } $ result = [ ] ; $ result [ JSONConstants :: JSON_TYPE_TYPE_MUTABILITY_CREATE ] = $ object -> canCreate ( ) ; $ result [ JSONConstants :: JSON_TYPE_TYPE_MUTABILITY_UPDATE ] = $ object -> canUpdate ( ) ; $ result [ JSONConstants :: JSON_TYPE_TYPE_MUTABILITY_DELETE ] = $ object -> canDelete ( ) ; return $ result ; }
Convert given object to a scalar representation or an array of scalar values.

@param TypeMutabilityInterface $object
@return boolean[] Array representation of object
@throws CmisInvalidArgumentException thrown if given object does not implement expected TypeMutabilityInterface
Convert given object to a scalar representation or an array of scalar values .