Skip to content

Commit

Permalink
Add MySQL Column type TIMESTAMP by extending DateTime.
Browse files Browse the repository at this point in the history
  • Loading branch information
shazahm1 committed Jan 23, 2017
1 parent bf8bf6a commit c3b1f6b
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/Table/Column/Timestamp.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php
/**
* Contains the class for the Timestamp column type.
*
* @author Steven A Zahm
* @since 2.0
* @license MIT
* @copyright Iron Bound Designs, 2016.
*/

namespace IronBound\DB\Table\Column;

/**
* Class DateTime
*
* @package IronBound\DB\Table\Column
*/
class Timestamp extends DateTime {

/**
* @inheritDoc
*/
public function get_mysql_type() {
return 'TIMESTAMP';
}
}

0 comments on commit c3b1f6b

Please sign in to comment.