Created
October 8, 2015 19:22
-
-
Save muskie9/c505785c4b9c194bf142 to your computer and use it in GitHub Desktop.
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
<?php | |
public function validate() | |
{ | |
$result = parent::validate(); | |
if($this->MyImage()->getWidth() < 100 || $this->MyImage()->getHeight() < 100) { | |
$result->error('Need a larger image'); | |
} | |
return $result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment