Phue\Command\CreateSchedule::name PHP Method

name() public method

Set name
public name ( string $name ) : self
$name string Name
return self This object
    public function name($name)
    {
        $this->attributes['name'] = (string) $name;
        return $this;
    }

Usage Example

Example #1
0
 /**
  * Test: Set name
  *
  * @covers \Phue\Command\CreateSchedule::name
  */
 public function testName()
 {
     $x = new CreateSchedule();
     $command = $x->name('Dummy!');
     // Ensure property is set properly
     $this->assertAttributeContains('Dummy!', 'attributes', $command);
     // Ensure self object is returned
     $this->assertEquals($command, $command->name('Dummy!'));
 }