-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
127 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
/** | ||
* ConnectorPropertyType.php | ||
* | ||
* @license More in LICENSE.md | ||
* @copyright https://www.fastybird.com | ||
* @author Adam Kadlec <adam.kadlec@fastybird.com> | ||
* @package FastyBird:FbBusConnector! | ||
* @subpackage Types | ||
* @since 0.19.0 | ||
* | ||
* @date 10.02.22 | ||
*/ | ||
|
||
namespace FastyBird\FbBusConnector\Types; | ||
|
||
use Consistence; | ||
use FastyBird\Metadata\Types as MetadataTypes; | ||
|
||
/** | ||
* Connector property name types | ||
* | ||
* @package FastyBird:FbBusConnector! | ||
* @subpackage Types | ||
* | ||
* @author Adam Kadlec <adam.kadlec@fastybird.com> | ||
*/ | ||
class ConnectorPropertyType extends Consistence\Enum\Enum | ||
{ | ||
|
||
/** | ||
* Define device states | ||
*/ | ||
public const NAME_BAUD_RATE = MetadataTypes\ConnectorPropertyNameType::NAME_BAUD_RATE; | ||
public const NAME_INTERFACE = MetadataTypes\ConnectorPropertyNameType::NAME_INTERFACE; | ||
public const NAME_ADDRESS = MetadataTypes\ConnectorPropertyNameType::NAME_ADDRESS; | ||
public const NAME_PROTOCOL = 'protocol'; | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function __toString(): string | ||
{ | ||
return strval(self::getValue()); | ||
} | ||
|
||
} |