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
2
3namespace BrianHenryIE\Strauss\Files;
4
5use BrianHenryIE\Strauss\Types\DiscoveredSymbol;
6
7interface FileBase
8{
9
10    public function getSourcePath(): string;
11
12    public function getAbsoluteTargetPath(): string;
13
14    public function setAbsoluteTargetPath(string $absoluteTargetPath): void;
15
16    public function isPhpFile(): bool;
17
18    public function setDoCopy(bool $doCopy): void;
19
20    public function isDoCopy(): bool;
21
22    public function setDoPrefix(bool $doPrefix): void;
23
24    public function isDoPrefix(): bool;
25
26    /**
27     * Used to mark files that are symlinked as not-to-be-deleted.
28     *
29     * @param bool $doDelete
30     *
31     * @return void
32     */
33    public function setDoDelete(bool $doDelete): void;
34
35    /**
36     * Should file be deleted?
37     *
38     * NB: Also respect the "delete_vendor_files"|"delete_vendor_packages" settings.
39     */
40    public function isDoDelete(): bool;
41
42    public function setDidDelete(bool $didDelete): void;
43
44    public function getDidDelete(): bool;
45
46    public function addDiscoveredSymbol(DiscoveredSymbol $symbol): void;
47
48    /**
49     * @return DiscoveredSymbol[]
50     */
51    public function getDiscoveredSymbols(): array;
52}