Skip to content

Commit 85d2ebb

Browse files
committed
added new method 'setDefault()'
1 parent 3f0d6fa commit 85d2ebb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Presenter.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,13 @@ public function getTransformer()
9696
return $this->transformer;
9797
}
9898

99+
public function setDefault($value) : self
100+
{
101+
$this->default = $value;
102+
103+
return $this;
104+
}
105+
99106
abstract public function present() : array;
100107

101108
/**

0 commit comments

Comments
 (0)