Sulu\Bundle\MediaBundle\Media\Exception\UploadFileException::toArray PHP Method

toArray() public method

public toArray ( ) : array
return array
    public function toArray()
    {
        return ['code' => $this->code, 'message' => $this->message];
    }
UploadFileException