Imbo\Model\ListModel::setEntry PHP Method

setEntry() public method

Set the entry value
public setEntry ( string $entry ) : self
$entry string
return self
    public function setEntry($entry)
    {
        $this->entry = $entry;
        return $this;
    }

Usage Example

Beispiel #1
0
 /**
  * @covers Imbo\Model\ListModel::setEntry
  * @covers Imbo\Model\ListModel::getEntry
  */
 public function testCanSetAndGetAnEntryValue()
 {
     $this->assertNull($this->model->getEntry());
     $entry = 'entry';
     $this->assertSame($this->model, $this->model->setEntry($entry));
     $this->assertSame($entry, $this->model->getEntry());
 }
All Usage Examples Of Imbo\Model\ListModel::setEntry