TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
AbstractControl.php
Go to the documentation of this file.
1 <?php
2 namespace TYPO3\CMS\Backend\Template\Components;
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
16 
21 {
27  protected $classes = '';
28 
34  protected $title = '';
35 
42  protected $dataAttributes = [];
43 
50  protected $onClick = '';
51 
57  public function getClasses()
58  {
59  return $this->classes;
60  }
61 
67  public function getTitle()
68  {
69  return $this->title;
70  }
71 
77  public function getDataAttributes()
78  {
79  return $this->dataAttributes;
80  }
81 
87  public function getOnClick()
88  {
89  return $this->onClick;
90  }
91 
99  public function setClasses($classes)
100  {
101  $this->classes = $classes;
102  return $this;
103  }
104 
112  public function setTitle($title)
113  {
114  $this->title = $title;
115  return $this;
116  }
117 
125  public function setDataAttributes(array $dataAttributes)
126  {
127  $this->dataAttributes = $dataAttributes;
128  return $this;
129  }
130 
138  public function setOnClick($onClick)
139  {
140  $this->onClick = $onClick;
141  return $this;
142  }
143 }