PhpOffice\PhpPresentation\Shape\Chart\Marker::setSymbol PHP Method

setSymbol() public method

public setSymbol ( string $symbol = self::SYMBOL_NONE ) : Marker
$symbol string
return Marker
    public function setSymbol($symbol = self::SYMBOL_NONE)
    {
        $this->symbol = $symbol;
        return $this;
    }

Usage Example

Example #1
0
 public function testSymbol()
 {
     $object = new Marker();
     $expected = array_rand(Marker::$arraySymbol);
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\Marker', $object->setSymbol($expected));
     $this->assertEquals($expected, $object->getSymbol());
 }