forked from giftcards/FixedWidth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFileInterface.php
55 lines (52 loc) · 1013 Bytes
/
FileInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
/**
* Created by PhpStorm.
* User: jderay
* Date: 9/2/14
* Time: 1:00 PM
*/
namespace Giftcards\FixedWidth;
interface FileInterface extends \Traversable, \Countable
{
/**
* @return string
*/
public function __toString();
/**
* @return LineInterface[]
*/
public function getLines();
/**
* @param $index
* @return LineInterface
*/
public function getLine($index);
/**
* @return string
*/
public function getName();
/**
* @param LineInterface|string $line
* @return $this
*/
public function addLine($line);
/**
* @param int $index
* @param LineInterface|string $line
* @return $this
*/
public function setLine($index, $line);
/**
* @param int $index
* @return $this
*/
public function removeLine($index);
/**
* @return int
*/
public function getWidth();
/**
* @return string
*/
public function getLineSeparator();
}