Skip to content

Commit 3270a3f

Browse files
Add accessor methods
1 parent 3fd04d8 commit 3270a3f

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

src/CodeCoverage/Data/File.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,22 @@ public function addCoveringTest($id, array $lines)
9292
$this->lines->addCoveringTest($id, $lines);
9393
}
9494

95+
/**
96+
* @return PHP_CodeCoverage_Data_FunctionCollection
97+
*/
98+
public function getFunctions()
99+
{
100+
return $this->functions;
101+
}
102+
103+
/**
104+
* @return PHP_CodeCoverage_Data_LineCollection
105+
*/
106+
public function getLines()
107+
{
108+
return $this->lines;
109+
}
110+
95111
/**
96112
* @return string
97113
*/

src/CodeCoverage/Data/Line.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,22 @@ public function addCoveringTest($id)
9696
$this->coveringTests[] = $id;
9797
}
9898

99+
/**
100+
* @return string[]
101+
*/
102+
public function getCoveringTests()
103+
{
104+
return $this->coveringTests;
105+
}
106+
107+
/**
108+
* @return PHP_CodeCoverage_Data_OpcodeCollection
109+
*/
110+
public function getOpcodes()
111+
{
112+
return $this->opcodes;
113+
}
114+
99115
/**
100116
* @return boolean
101117
*/

0 commit comments

Comments
 (0)