- WIP on attributes
This commit is contained in:
		
							parent
							
								
									59fa22ade0
								
							
						
					
					
						commit
						f3270dbc25
					
				
							
								
								
									
										10
									
								
								src/Attribute/Method/Cronard.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								src/Attribute/Method/Cronard.php
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,10 @@
 | 
				
			|||||||
 | 
					<?php
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Notes\Cronard\Attribute\Method;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					class Cronard implements \Notes\Attribute {
 | 
				
			||||||
 | 
					    public function __construct(
 | 
				
			||||||
 | 
					        public string $cron,
 | 
				
			||||||
 | 
					        public null|string $method = null,
 | 
				
			||||||
 | 
					    ) {}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										10
									
								
								src/Attribute/Object/Cronard.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								src/Attribute/Object/Cronard.php
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,10 @@
 | 
				
			|||||||
 | 
					<?php
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Notes\Cronard\Attribute\Object;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					class Cronard implements \Notes\Attribute {
 | 
				
			||||||
 | 
					    public function __construct(
 | 
				
			||||||
 | 
					        public string $cron,
 | 
				
			||||||
 | 
					        public string $method = "__invoke",
 | 
				
			||||||
 | 
					    ) {}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -1,7 +1,6 @@
 | 
				
			|||||||
<?php namespace Notes\Cronard;
 | 
					<?php namespace Notes\Cronard;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use Notes\ObjectReflection,
 | 
					use Notes\ObjectResolver;
 | 
				
			||||||
    Notes\ObjectResolver;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
use RuntimeException, DirectoryIterator, Generator, Closure;
 | 
					use RuntimeException, DirectoryIterator, Generator, Closure;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user