setFields() публичный Метод

Set the fields to display
public setFields ( array $fields ) : self
$fields array
Результат self
Пример #1
0
 /**
  * @covers Imbo\Model\Images::setFields
  * @covers Imbo\Model\Images::getFields
  */
 public function testCanSetAndGetFields()
 {
     $this->assertSame(array(), $this->model->getFields());
     $this->assertSame($this->model, $this->model->setFields(array('width', 'height')));
     $this->assertSame(array('width', 'height'), $this->model->getFields());
 }
Пример #2
0
 /**
  * @covers Imbo\Model\Images::setFields
  * @covers Imbo\Model\Images::getFields
  */
 public function testCanSetAndGetFields()
 {
     $this->assertSame([], $this->model->getFields());
     $this->assertSame($this->model, $this->model->setFields(['width', 'height']));
     $this->assertSame(['width', 'height'], $this->model->getFields());
 }