Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
1 / 1
ProjectionAnnotation
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
2 / 2
2
100.00% covered (success)
100.00%
1 / 1
 getSubtype
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 toPdf
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace Phpdftk\Pdf\Core\Annotation;
6
7use Phpdftk\Pdf\Core\PdfVersion;
8use Phpdftk\Pdf\Core\RequiresPdfVersion;
9
10/**
11 * Projection annotation (/Subtype /Projection).
12 */
13#[RequiresPdfVersion(PdfVersion::V2_0)]
14class ProjectionAnnotation extends Annotation
15{
16    public function getSubtype(): string
17    {
18        return 'Projection';
19    }
20
21    public function toPdf(): string
22    {
23        return $this->buildDictionary()->toPdf();
24    }
25}