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

toArray() public method

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