-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
- Loading branch information
Showing
71 changed files
with
3,254 additions
and
312 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 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,145 @@ | ||
<?php | ||
|
||
namespace Rougin\Combustor; | ||
|
||
/** | ||
* @package Combustor | ||
* | ||
* @author Rougin Gutib <rougingutib@gmail.com> | ||
*/ | ||
class Colfield | ||
{ | ||
/** | ||
* @var string|null | ||
*/ | ||
protected $accessor = null; | ||
|
||
/** | ||
* @var string|null | ||
*/ | ||
protected $class = null; | ||
|
||
/** | ||
* @var boolean | ||
*/ | ||
protected $edit = false; | ||
|
||
/** | ||
* @var string|null | ||
*/ | ||
protected $name = null; | ||
|
||
/** | ||
* @var boolean | ||
*/ | ||
protected $styling = false; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
protected $tab = ''; | ||
|
||
/** | ||
* @var string|null | ||
*/ | ||
protected $type = null; | ||
|
||
/** | ||
* @param boolean $edit | ||
* | ||
* @return self | ||
*/ | ||
public function asEdit($edit = true) | ||
{ | ||
$this->edit = $edit; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* @return string|null | ||
*/ | ||
public function getClass() | ||
{ | ||
if ($this->styling) | ||
{ | ||
return $this->class; | ||
} | ||
|
||
return null; | ||
} | ||
|
||
/** | ||
* @return string|null | ||
*/ | ||
public function getName() | ||
{ | ||
return $this->name; | ||
} | ||
|
||
/** | ||
* @codeCoverageIgnore | ||
* | ||
* @return string[] | ||
*/ | ||
public function getPlate() | ||
{ | ||
return array(); | ||
} | ||
|
||
/** | ||
* @return string|null | ||
*/ | ||
public function getType() | ||
{ | ||
return $this->type; | ||
} | ||
|
||
/** | ||
* @param string $accessor | ||
* | ||
* @return self | ||
*/ | ||
public function setAccessor($accessor) | ||
{ | ||
$this->accessor = $accessor; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* @param string $name | ||
* | ||
* @return self | ||
*/ | ||
public function setName($name) | ||
{ | ||
$this->name = $name; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* @param string $tab | ||
* | ||
* @return self | ||
*/ | ||
public function setSpacing($tab = '') | ||
{ | ||
$this->tab = $tab; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* @param boolean $styling | ||
* | ||
* @return self | ||
*/ | ||
public function useStyling($styling = true) | ||
{ | ||
$this->styling = $styling; | ||
|
||
return $this; | ||
} | ||
} |
Oops, something went wrong.