<?php
namespace PhpOffice\PhpWord\Style;
class Outline extends AbstractStyle
{
const LINE_SINGLE = 'single';
const LINE_THIN_THIN = 'thinThin';
const LINE_THIN_THICK = 'thinThick';
const LINE_THICK_THIN = 'thickThin';
const LINE_THICK_BETWEEN_THIN = 'thickBetweenThin';
const ENDCAP_FLAT = 'flat';
const ENDCAP_SQUARE = 'square';
const ENDCAP_ROUND = 'round';
const ARROW_NONE = 'none';
const ARROW_BLOCK = 'block';
const ARROW_CLASSIC = 'classic';
const ARROW_OVAL = 'oval';
const ARROW_DIAMOND = 'diamond';
const ARROW_OPEN = 'open';
private $unit = 'pt';
private $weight;
private $color;
private $dash;
private $line;
private $endCap;
private $startArrow;
private $endArrow;
public function __construct($style = array())
{
$this->setStyleByArray($style);
}
public function getUnit()
{
return $this->unit;
}
public function getWeight()
{
return $this->weight;
}
public function setWeight($value = null)
{
$this->weight = $this->setNumericVal($value, null);
return $this;
}
public function getColor()
{
return $this->color;
}
public function setColor($value = null)
{
$this->color = $value;
return $this;
}
public function getDash()
{
return $this->dash;
}
public function setDash($value = null)
{
$this->dash = $value;
return $this;
}
public function getLine()
{
return $this->line;
}
public function setLine($value = null)
{
$enum = array(self::LINE_SINGLE, self::LINE_THIN_THIN, self::LINE_THIN_THICK,
self::LINE_THICK_THIN, self::LINE_THICK_BETWEEN_THIN, );
$this->line = $this->setEnumVal($value, $enum, null);
return $this;
}
public function getEndCap()
{
return $this->endCap;
}
public function setEndCap($value = null)
{
$enum = array(self::ENDCAP_FLAT, self::ENDCAP_SQUARE, self::ENDCAP_ROUND);
$this->endCap = $this->setEnumVal($value, $enum, null);
return $this;
}
public function getStartArrow()
{
return $this->startArrow;
}
public function setStartArrow($value = null)
{
$enum = array(self::ARROW_NONE, self::ARROW_BLOCK, self::ARROW_CLASSIC,
self::ARROW_OVAL, self::ARROW_DIAMOND, self::ARROW_OPEN, );
$this->startArrow = $this->setEnumVal($value, $enum, null);
return $this;
}
public function getEndArrow()
{
return $this->endArrow;
}
public function setEndArrow($value = null)
{
$enum = array(self::ARROW_NONE, self::ARROW_BLOCK, self::ARROW_CLASSIC,
self::ARROW_OVAL, self::ARROW_DIAMOND, self::ARROW_OPEN, );
$this->endArrow = $this->setEnumVal($value, $enum, null);
return $this;
}
}