packbackbooks/lti-1-3-php-library

View on GitHub
src/DeepLinkResources/HasDimensions.php

Summary

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

namespace Packback\Lti1p3\DeepLinkResources;

trait HasDimensions
{
    public function setWidth(?int $width): self
    {
        $this->width = $width;

        return $this;
    }

    public function getWidth(): ?int
    {
        return $this->width;
    }

    public function setHeight(?int $height): self
    {
        $this->height = $height;

        return $this;
    }

    public function getHeight(): ?int
    {
        return $this->height;
    }
}