spec\Crummy\Phlack\Builder\AttachmentBuilderSpec::it_provides_a_fluent_interface PHP Метод

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

    public function it_provides_a_fluent_interface()
    {
        $this->setFallback('fallback')->shouldReturn($this);
        $this->setText('text')->shouldReturn($this);
        $this->setPretext('pretext')->shouldReturn($this);
        $this->setColor('danger')->shouldReturn($this);
        $this->setAuthorName('author name')->shouldReturn($this);
        $this->setAuthorLink('author link')->shouldReturn($this);
        $this->setAuthorIcon('http://domain.com/icon.png')->shouldReturn($this);
        $this->setTitle('title')->shouldReturn($this);
        $this->setTitleLink('http://www.title-link.com/')->shouldReturn($this);
        $this->setImageUrl('http://domain.com/image.png')->shouldReturn($this);
        $this->setThumbUrl('http://domain.com/thumb.png')->shouldReturn($this);
        $this->setMrkdwnIn(['text', 'pretext'])->shouldReturn($this);
    }