*prechod na novsiu verziu ZF
[sport-group.git] / library / Zend / Tool / Framework / Metadata / Tool.php
blob95994bd9c71ec8a6b6631e2aad596b2d58e7f85f
1 <?php
2 /**
3 * Zend Framework
5 * LICENSE
7 * This source file is subject to the new BSD license that is bundled
8 * with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://framework.zend.com/license/new-bsd
11 * If you did not receive a copy of the license and are unable to
12 * obtain it through the world-wide-web, please send an email
13 * to license@zend.com so we can send you a copy immediately.
15 * @category Zend
16 * @package Zend_Tool
17 * @subpackage Framework
18 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Tool.php 16971 2009-07-22 18:05:45Z mikaelkael $
23 /**
24 * @see Zend_Tool_Framework_Metadata_Basic
26 require_once 'Zend/Tool/Framework/Metadata/Basic.php';
28 /**
29 * @category Zend
30 * @package Zend_Tool
31 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
32 * @license http://framework.zend.com/license/new-bsd New BSD License
34 class Zend_Tool_Framework_Metadata_Tool extends Zend_Tool_Framework_Metadata_Basic
37 /**
38 * @var string
40 protected $_type = 'Tool';
42 /**#@+
43 * @var string
45 protected $_clientName = null;
46 protected $_actionName = null;
47 protected $_providerName = null;
48 protected $_specialtyName = null;
49 /**#@-*/
51 /**#@+
52 * @var string
54 protected $_clientReference = null;
55 protected $_actionReference = null;
56 protected $_providerReference = null;
57 /**#@-*/
59 public function setClientName($clientName)
61 $this->_clientName = $clientName;
62 return $this;
65 public function getClientName()
67 return $this->_clientName;
70 /**
71 * setActionName()
73 * @param string $actionName
74 * @return Zend_Tool_Framework_Metadata_Tool
76 public function setActionName($actionName)
78 $this->_actionName = $actionName;
79 return $this;
82 /**
83 * getActionName()
85 * @return string
87 public function getActionName()
89 return $this->_actionName;
92 /**
93 * setProviderName()
95 * @param string $providerName
96 * @return Zend_Tool_Framework_Metadata_Tool
98 public function setProviderName($providerName)
100 $this->_providerName = $providerName;
101 return $this;
105 * getProviderName()
107 * @return string
109 public function getProviderName()
111 return $this->_providerName;
115 * setSpecialtyName()
117 * @param string $specialtyName
118 * @return Zend_Tool_Framework_Metadata_Tool
120 public function setSpecialtyName($specialtyName)
122 $this->_specialtyName = $specialtyName;
123 return $this;
127 * getSpecialtyName()
129 * @return string
131 public function getSpecialtyName()
133 return $this->_specialtyName;
137 * setClientReference()
139 * @param Zend_Tool_Framework_Client_Abstract $client
140 * @return Zend_Tool_Framework_Metadata_Tool
142 public function setClientReference(Zend_Tool_Framework_Client_Abstract $client)
144 $this->_clientReference = $client;
145 return $this;
149 * getClientReference()
151 * @return Zend_Tool_Framework_Client_Abstract
153 public function getClientReference()
155 return $this->_clientReference;
159 * setActionReference()
161 * @param Zend_Tool_Framework_Action_Interface $action
162 * @return Zend_Tool_Framework_Metadata_Tool
164 public function setActionReference(Zend_Tool_Framework_Action_Interface $action)
166 $this->_actionReference = $action;
167 return $this;
171 * getActionReference()
173 * @return Zend_Tool_Framework_Action_Interface
175 public function getActionReference()
177 return $this->_actionReference;
181 * setProviderReference()
183 * @param Zend_Tool_Framework_Provider_Interface $provider
184 * @return Zend_Tool_Framework_Metadata_Tool
186 public function setProviderReference(Zend_Tool_Framework_Provider_Interface $provider)
188 $this->_providerReference = $provider;
189 return $this;
193 * getProviderReference()
195 * @return Zend_Tool_Framework_Provider_Interface
197 public function getProviderReference()
199 return $this->_providerReference;
203 * __toString() cast to string
205 * @return string
207 public function __toString()
209 $string = parent::__toString();
210 $string .= ' (ProviderName: ' . $this->_providerName
211 . ', ActionName: ' . $this->_actionName
212 . ', SpecialtyName: ' . $this->_specialtyName
213 . ')';
215 return $string;