src/Charcoal/Property/FileProperty.php
public function setMimetype($type)
    {
        if ($type === null || $type === false) {
            $this->mimetype = null;

            return $this;
        }

        if (!is_string($type)) {
            throw new InvalidArgumentException(
                'Mimetype must be a string'
            );
        }

        $this->mimetype = $type;

        return $this;
    }
public function setMimetype($type)
    {
        if ($type === null || $type === false) {
            $this->mimetype = null;

            return $this;
        }

        if (!is_string($type)) {
            throw new InvalidArgumentException(
                'Mimetype must be a string'
            );
        }

        $this->mimetype = $type;

        return $this;
    }
public function setMimetype ( $ type ) { if ( $ type === null || $ type === false ) { $ this -> mimetype = null ; return $ this ; } if ( ! is_string ( $ type ) ) { throw new InvalidArgumentException ( 'Mimetype must be a string' ) ; } $ this -> mimetype = $ type ; return $ this ; }
Set the MIME type.

@param  mixed $type The file MIME type.
@throws InvalidArgumentException If the MIME type argument is not a string.
@return FileProperty Chainable
Set the MIME type .