original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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
docstring_tokens: Convert given object to a scalar representation or an array of scalar values .