Carew\Document::setPath PHP Method

setPath() public method

public setPath ( $path )
    public function setPath($path)
    {
        $this->path = $path;
        return $this;
    }

Usage Example

Beispiel #1
0
 public function testOnApi()
 {
     $document = new Document(null, null, Document::TYPE_API);
     $document->setPath('foobar.html');
     $event = new CarewEvent($document);
     $extraction = new Optimization();
     $extraction->onDocument($event);
     $this->assertSame('api/foobar.html', $document->getPath());
 }
All Usage Examples Of Carew\Document::setPath