Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
klimov-paul committed Dec 22, 2023
1 parent ce254d8 commit c02ac39
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/TypecastBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,12 @@ class TypecastBehavior extends CBehavior
const TYPE_TIMESTAMP = 'timestamp';
/**
* Converts ISO datetime string into {@see \Carbon\Carbon} and vice versa.
* @see https://packagist.org/packages/nesbot/carbon
*/
const TYPE_DATETIME_CARBON = 'datetime-carbon';
/**
* Converts integer Unix timestamp into {@see \Carbon\Carbon} and vice versa.
* @see https://packagist.org/packages/nesbot/carbon
*/
const TYPE_TIMESTAMP_CARBON = 'timestamp-carbon';

Expand Down Expand Up @@ -152,8 +154,7 @@ class TypecastBehavior extends CBehavior
public $skipOnNull = true;
/**
* @var bool whether to perform typecasting after owner model validation.
* Note that typecasting will be performed only if validation was successful, e.g.
* owner model has no errors.
* Note that typecasting will be performed only if validation was successful, e.g. owner model has no errors.
* Note that changing this option value will have no effect after this behavior has been attached to the model.
*/
public $typecastAfterValidate = true;
Expand All @@ -162,15 +163,13 @@ class TypecastBehavior extends CBehavior
* This option may be disabled in order to achieve better performance.
* For example, in case of {@see \CActiveRecord} usage, typecasting before save
* will grant no benefit and thus can be disabled.
* Note that changing this option value will have no effect after this behavior has been attached to the model.
*/
public $typecastBeforeSave = false;
/**
* @var bool whether to perform typecasting after saving owner model (insert or update).
* This option may be disabled in order to achieve better performance.
* For example, in case of {@see \CActiveRecord} usage, typecasting after save
* will grant no benefit and thus can be disabled.
* Note that changing this option value will have no effect after this behavior has been attached to the model.
* @since 2.0.14
*/
public $typecastAfterSave = true;
Expand Down

0 comments on commit c02ac39

Please sign in to comment.