mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-26 09:02:53 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			40 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace App\Models;
 | |
| 
 | |
| /**
 | |
|  * Class DatetimeFormat.
 | |
|  *
 | |
|  * @property int $id
 | |
|  * @property string $format
 | |
|  * @property string $format_moment
 | |
|  * @property string $format_dart
 | |
|  * @method static \Illuminate\Database\Eloquent\Builder|StaticModel company()
 | |
|  * @method static \Illuminate\Database\Eloquent\Builder|StaticModel exclude($columns)
 | |
|  * @method static \Illuminate\Database\Eloquent\Builder|DatetimeFormat newModelQuery()
 | |
|  * @method static \Illuminate\Database\Eloquent\Builder|DatetimeFormat newQuery()
 | |
|  * @method static \Illuminate\Database\Eloquent\Builder|DatetimeFormat query()
 | |
|  * @method static \Illuminate\Database\Eloquent\Builder|DatetimeFormat whereFormat($value)
 | |
|  * @method static \Illuminate\Database\Eloquent\Builder|DatetimeFormat whereFormatDart($value)
 | |
|  * @method static \Illuminate\Database\Eloquent\Builder|DatetimeFormat whereFormatMoment($value)
 | |
|  * @method static \Illuminate\Database\Eloquent\Builder|DatetimeFormat whereId($value)
 | |
|  * @mixin \Eloquent
 | |
|  */
 | |
| class DatetimeFormat extends StaticModel
 | |
| {
 | |
|     /**
 | |
|      * @var bool
 | |
|      */
 | |
|     public $timestamps = false;
 | |
| 
 | |
|     /**
 | |
|      * @return bool|string
 | |
|      */
 | |
|     public function __toString()
 | |
|     {
 | |
|         $date = mktime(0, 0, 0, 12, 31, date('Y'));
 | |
| 
 | |
|         return date($this->format, $date);
 | |
|     }
 | |
| }
 |