original_string: public function transform($value)
      {
          if ($value === null || $value == '') {
              return null;
          }
          if (!($value instanceof File)) {
              throw new TransformationFailedException('Expected an instance of a concrete5 file object.');
          }
          return intval($value->getFileID());
      }
code: public function transform($value)
      {
          if ($value === null || $value == '') {
              return null;
          }
          if (!($value instanceof File)) {
              throw new TransformationFailedException('Expected an instance of a concrete5 file object.');
          }
          return intval($value->getFileID());
      }
code_tokens: public function transform ( $ value ) { if ( $ value === null || $ value == '' ) { return null ; } if ( ! ( $ value instanceof File ) ) { throw new TransformationFailedException ( 'Expected an instance of a concrete5 file object.' ) ; } return intval ( $ value -> getFileID ( ) ) ; }
docstring: Converts a concrete5 file object to an integer.
  
  @param \Concrete\Core\File\File $value The file object value
  @return int The integer value
  @throws TransformationFailedException If the given value is not an
  instance of Concrete\Core\File\File.
docstring_tokens: Converts a concrete5 file object to an integer .