Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2declare(strict_types=1);
3/**
4 * Pop PHP Framework (https://www.popphp.org/)
5 *
6 * @link       https://github.com/popphp/popphp-framework
7 * @author     Nick Sagona, III <nick@popphp.org>
8 * @copyright  Copyright (c) 2009-2026 Nick Sagona, III
9 * @license    https://www.popphp.org/license     New BSD License
10 */
11
12/**
13 * @namespace
14 */
15namespace Pop\Pdf\Build\PdfObject;
16
17/**
18 * Pdf object interface
19 *
20 * @category   Pop
21 * @package    Pop\Pdf
22 * @author     Nick Sagona, III <nick@popphp.org>
23 * @copyright  Copyright (c) 2009-2026 Nick Sagona, III
24 * @license    https://www.popphp.org/license     New BSD License
25 * @version    6.0.0
26 */
27interface ObjectInterface
28{
29
30    /**
31     * Set the object index
32     *
33     * @param  int $i
34     * @return ObjectInterface
35     */
36    public function setIndex(int $i): ObjectInterface;
37
38    /**
39     * Set the object data
40     *
41     * @param  string $data
42     * @return ObjectInterface
43     */
44    public function setData(string $data): ObjectInterface;
45
46    /**
47     * Get the object index
48     *
49     * @return ?int
50     */
51    public function getIndex(): ?int;
52
53    /**
54     * Get the object data
55     *
56     * @return ?string
57     */
58    public function getData(): ?string;
59
60    /**
61     * Method to print the object
62     *
63     * @return string
64     */
65    public function __toString(): string;
66
67}