packbackbooks/lti-1-3-php-library

View on GitHub
src/Concerns/JsonStringable.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

namespace Packback\Lti1p3\Concerns;

trait JsonStringable
{
    use Arrayable;

    public function __toString(): string
    {
        return json_encode($this->toArray());
    }
}