Exemple #1
0
 /**
  * Creates a new osu! signature.
  *
  * @param array $user The user whom the signature will be the signature's subject
  * @param Template $template The template this signature will be based on.
  */
 public function __construct($user, $template)
 {
     $this->user = $user;
     $this->template = new $template($this);
     $width = $this->template->calculateBaseWidth() + $this->template->getImageMarginWidth();
     $height = $this->template->calculateBaseHeight() + $this->template->getImageMarginWidth();
     parent::__construct($width, $height);
 }