-
Notifications
You must be signed in to change notification settings - Fork 526
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #190 from Progi1984/issue169
- Loading branch information
Showing
28 changed files
with
1,153 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
<?php | ||
/** | ||
* This file is part of PHPPresentation - A pure PHP library for reading and writing | ||
* presentations documents. | ||
* | ||
* PHPPresentation is free software distributed under the terms of the GNU Lesser | ||
* General Public License version 3 as published by the Free Software Foundation. | ||
* | ||
* For the full copyright and license information, please read the LICENSE | ||
* file that was distributed with this source code. For the full list of | ||
* contributors, visit https://github.com/PHPOffice/PHPPresentation/contributors. | ||
* | ||
* @link https://github.com/PHPOffice/PHPPresentation | ||
* @copyright 2009-2015 PHPPresentation contributors | ||
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3 | ||
*/ | ||
|
||
namespace PhpOffice\PhpPresentation\Shape\Chart; | ||
|
||
use PhpOffice\PhpPresentation\ComparableInterface; | ||
|
||
/** | ||
* \PhpOffice\PhpPresentation\Shape\Chart\Axis | ||
*/ | ||
class Marker | ||
{ | ||
const SYMBOL_CIRCLE = 'circle'; | ||
const SYMBOL_DASH = 'dash'; | ||
const SYMBOL_DIAMOND = 'diamond'; | ||
const SYMBOL_DOT = 'dot'; | ||
const SYMBOL_NONE = 'none'; | ||
const SYMBOL_PLUS = 'plus'; | ||
const SYMBOL_SQUARE = 'square'; | ||
const SYMBOL_STAR = 'star'; | ||
const SYMBOL_TRIANGLE = 'triangle'; | ||
const SYMBOL_X = 'x'; | ||
|
||
public static $arraySymbol = array( | ||
self::SYMBOL_CIRCLE, | ||
self::SYMBOL_DASH, | ||
self::SYMBOL_DIAMOND, | ||
self::SYMBOL_DOT, | ||
self::SYMBOL_NONE, | ||
self::SYMBOL_PLUS, | ||
self::SYMBOL_SQUARE, | ||
self::SYMBOL_STAR, | ||
self::SYMBOL_TRIANGLE, | ||
self::SYMBOL_X | ||
); | ||
|
||
/** | ||
* @var string | ||
*/ | ||
protected $symbol = self::SYMBOL_NONE; | ||
|
||
/** | ||
* @var int | ||
*/ | ||
protected $size = 5; | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getSymbol() | ||
{ | ||
return $this->symbol; | ||
} | ||
|
||
/** | ||
* @param string $symbol | ||
* @return Marker | ||
*/ | ||
public function setSymbol($symbol = self::SYMBOL_NONE) | ||
{ | ||
$this->symbol = $symbol; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getSize() | ||
{ | ||
return $this->size; | ||
} | ||
|
||
/** | ||
* @param int $size | ||
* @return Marker | ||
*/ | ||
public function setSize($size = 5) | ||
{ | ||
$this->size = $size; | ||
|
||
return $this; | ||
} | ||
} |
Oops, something went wrong.