/** * Font file * * @param string $font Font file * @param int $size Font size */ public function __construct($font, $size) { parent::__construct($font); $this->size = (int) $size; }
public function __construct($name, $size) { parent::__construct(); $this->setName($name); $this->setSize($size); }
public function __construct($name, $size) { parent::__construct(); $this->name = (string) $name; $this->size = (int) $size; }